Created
August 25, 2021 20:26
-
-
Save T99/4dd4e9864253d0a6dae2a7f3cee132f1 to your computer and use it in GitHub Desktop.
TypeScript Class Signature Regexp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ^\s*(?:(?<export>export)\s+)?(?<typeType>class|abstract\s+class|interface)\s+(?:(?<typeName>[a-zA-Z][a-zA-Z0-9]*)(?<typeGenerics><.*?>)?)\s+(?:extends\s+(?<extends>[a-zA-Z][a-zA-Z0-9]*(?:<.*?>)?)\s+)?(?:implements\s+(?<implements>[a-zA-Z][a-zA-Z0-9]*(?:<.*?>)?(?:,\s+[a-zA-Z][a-zA-Z0-9]*(?:<.*?>)?)*)\s+)?{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment