Skip to content

Instantly share code, notes, and snippets.

@avaly
Created February 27, 2019 03:30
Show Gist options
  • Save avaly/0b700b2093b59a2a3f8223e0555e4248 to your computer and use it in GitHub Desktop.
Save avaly/0b700b2093b59a2a3f8223e0555e4248 to your computer and use it in GitHub Desktop.
typescript-checkJS
type Bar = { bar: number };
const test = { bar: 123 } as Bar;
test.bar;
type Foo = { foo: number };
const test = { foo: 123 } as Foo;
test.foo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment