Last active
November 28, 2019 09:06
-
-
Save wmadden/6522587db727e046bc78abf2de76be4e 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
function getUser() { | |
return { | |
id: '123', | |
namee: 'Tom Hanks', // misspelled | |
}; | |
} | |
console.log(getUser().name); | |
// ^^^^ | |
// Property 'name' does not exist on type '{ id: string; namee: string; }'. Did you mean 'namee'? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment