Created
September 18, 2020 04:57
-
-
Save deleteman/2a93ccdc718b2ae4c97ff360e3b54a94 to your computer and use it in GitHub Desktop.
This file contains 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
function get<T, K extends keyof T>(p: T, key: K): any { | |
return p[key] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment