Created
January 9, 2019 00:29
-
-
Save robertcoopercode/38de8a88f04e121559d5f438e7f8c2d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let dog: { | |
kind: string; | |
weight: number; | |
}; | |
dog = { | |
kind: 'mammal', | |
weight: 10, | |
}; // ✅ | |
dog = { | |
kind: true, | |
weight: 10, | |
}; // ❌ - kind should be a string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment