From 92b16c91325f4e35cbcad5697ed6f4106ddda596 Mon Sep 17 00:00:00 2001 From: Tom Arrell Date: Tue, 3 Apr 2018 16:56:13 +1200 Subject: [PATCH] Fixed incorrect flow type output For an optional property, the property can either be undefined, otherwise must be any value that is not null. The example was showing the incorrect output of a setting the value to null. --- flow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow.md b/flow.md index c5bc83b1f..ca63eca73 100644 --- a/flow.md +++ b/flow.md @@ -133,7 +133,7 @@ type Album = { ```js const a: Album = { } // ✓ OK a.name = 'Blue' // ✓ OK -a.name = null // ✓ OK +a.name = null // ✓ Error a.name = undefined // ✓ OK ```