Skip to content

Instantly share code, notes, and snippets.

@blemoine
Created March 23, 2017 00:23
Show Gist options
  • Save blemoine/08d6efed0021684ebd4a7f949d509329 to your computer and use it in GitHub Desktop.
Save blemoine/08d6efed0021684ebd4a7f949d509329 to your computer and use it in GitHub Desktop.
const f: string = "foo" //foo is a string
const f2: Object = "foo" // foo is also an Object
const f3: {length:number} = "foo" // foo has a length attribute
const f4: "foo" = "foo" //foo is of type "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment