Skip to content

Instantly share code, notes, and snippets.

@Kiwka
Created February 24, 2019 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kiwka/4460a8342fba4a6435dc915611e5b0e2 to your computer and use it in GitHub Desktop.
Save Kiwka/4460a8342fba4a6435dc915611e5b0e2 to your computer and use it in GitHub Desktop.
2 ways to create exact object type in flow type
type SharedPropertiesExact1 = {|
length: number,
name: string,
|};
type SharedPropertiesExact2 = $Exact<{
length: number,
name: string,
}>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment