Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created March 23, 2021 19:41
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 eamonnboyle/bcc3b9aebf22a4bc92e4685af30daacd to your computer and use it in GitHub Desktop.
Save eamonnboyle/bcc3b9aebf22a4bc92e4685af30daacd to your computer and use it in GitHub Desktop.
Leading and Middle Variadic Tuples
type Student = [string, ...number[], boolean];
const bob: Student = ['Bob', true];
const sally: Student = ['Sally', 100, true];
const jane: Student = ['Jane', 80, 90, 100, true];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment