Last active
August 9, 2020 12:11
-
-
Save jaycosaur/c8562a5c6d744925936eeb118c946992 to your computer and use it in GitHub Desktop.
Generics [typescript] - Typescript to Python field guide
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
function variadic<T>(...args: T[]): T[] { | |
return args; | |
} | |
function multiGeneric<A, B>(argA: A, argB: B): [A, B] { | |
return [argA, argB]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment