-
-
Save quicksnap/8f182c7443761e7ce6905e40679d9c60 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 plainObject = { | |
type: 'Just an Object!', | |
payload: { | |
amount: 123, | |
}, | |
}; | |
/* | |
Inferred type: | |
{ | |
type: string; | |
payload: { | |
amount: number; | |
}; | |
}; | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment