Skip to content

Instantly share code, notes, and snippets.

@tswistak
Created July 30, 2018 06:10
Show Gist options
  • Save tswistak/e3f6985ef486362a6536be258ed70f34 to your computer and use it in GitHub Desktop.
Save tswistak/e3f6985ef486362a6536be258ed70f34 to your computer and use it in GitHub Desktop.
TypeScript 3.0, listing 2
type StringAndNumbers = [string, ...number[]];
const b1: StringAndNumbers = ['a', 1, 2, 3];
const b2: StringAndNumbers = ['a'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment