-
-
Save blemoine/08d6efed0021684ebd4a7f949d509329 to your computer and use it in GitHub Desktop.
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
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