Created
July 14, 2021 17:24
-
-
Save captain-yossarian/c21242b5dee4ae14c9ec10d9c90d5332 to your computer and use it in GitHub Desktop.
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
const fn = < | |
T extends typeof Base, | |
Instance extends InstanceType<T> | |
>(Cls: T, prop: keyof Instance, | |
) => new Cls()[prop]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment