Skip to content

Instantly share code, notes, and snippets.

@Kiwka

Kiwka/blogEntry.js

Created Dec 4, 2019
Embed
What would you like to do?
Example of the named type for string types variable
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
You can’t perform that action at this time.