Skip to content

Instantly share code, notes, and snippets.

@jaycosaur
Last active August 9, 2020 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaycosaur/c8562a5c6d744925936eeb118c946992 to your computer and use it in GitHub Desktop.
Save jaycosaur/c8562a5c6d744925936eeb118c946992 to your computer and use it in GitHub Desktop.
Generics [typescript] - Typescript to Python field guide
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