Merge pull request #499 from peterzalewski/peterzalewski-patch-1

Fix typo
This commit is contained in:
Rico Sta. Cruz 2018-05-14 09:20:12 +08:00 committed by GitHub
commit 22319d76f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ a.name = null // ✓ OK
a.name = undefined // ✓ OK a.name = undefined // ✓ OK
``` ```
This makes an `Album` valid even if `artist` is not part of the keys. This is different from "maybe" types. This makes an `Album` valid even if `name` is not part of the keys. This is different from "maybe" types.
See: [Optional properties](https://flow.org/en/docs/types/primitives/#toc-optional-object-properties) See: [Optional properties](https://flow.org/en/docs/types/primitives/#toc-optional-object-properties)