Created
February 24, 2019 19:33
-
-
Save Kiwka/4460a8342fba4a6435dc915611e5b0e2 to your computer and use it in GitHub Desktop.
2 ways to create exact object type in flow type
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
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