Created
December 4, 2019 11:55
-
-
Save Kiwka/647459a8ea3ed69ea2efcff162d7db38 to your computer and use it in GitHub Desktop.
Example of the named type for string types variable
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
export type BlogEntryId = string; | |
type BlogEntryType = {| | |
id: BlogEntryId, | |
... | |
|}; | |
const blogEntry: = { | |
id: 'ddjj38302mmd92m2k2', | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment