Skip to content

Instantly share code, notes, and snippets.

@bennycode
Created October 17, 2019 10:32
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 bennycode/8fbefe1789deef87853e1146e36bb0a2 to your computer and use it in GitHub Desktop.
Save bennycode/8fbefe1789deef87853e1146e36bb0a2 to your computer and use it in GitHub Desktop.
50 Shades of Types
const a: object = { name: 'Benny' };
const b: Object = { name: 'Benny' };
const c: {} = { name: 'Benny' };
const d: Record<string, string> = { name: 'Benny' };
const e: any = { name: 'Benny' };
const f: {[index: string]: string} = { name: 'Benny' };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment