Flow中的非null和非undefined类型

cze*_*rny 4 non-nullable flowtype

Flow定义了所谓的"Maybe types".即?string类似于string | null | void(void是一种值undefined).

有什么样的一般类型,可以是但是任何价值nullundefined基本上类似于$Diff<$Diff<any, null>, void>if $Diff运算符能够在非对象类型上操作.

vku*_*kin 5

没有一些"神奇"的类型,但这样的东西应该工作: string | number | boolean | {} | []