Created
January 3, 2021 02:08
-
-
Save muchrm/a476e23aaf9b2883ed91bce30879ce95 to your computer and use it in GitHub Desktop.
what i learned from typescript
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
| type Constructor<T> = { new(...args: unknown[]): T } | |
| function isType<T>(class:Constructor<T>):T{ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment