Created
February 27, 2019 03:30
-
-
Save avaly/0b700b2093b59a2a3f8223e0555e4248 to your computer and use it in GitHub Desktop.
typescript-checkJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Bar = { bar: number }; | |
const test = { bar: 123 } as Bar; | |
test.bar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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