【发布时间】:2018-10-23 00:15:10
【问题描述】:
Flow 定义了所谓的"Maybe types"。 IE。 ?string 与 string | null | void 类似(void 是值类型 undefined)。
除了null 和undefined 之外,是否有类似于通用类型的东西? 基本上类似于$Diff<$Diff<any, null>, void> 如果$Diff 运算符能够对非对象进行操作类型。
【问题讨论】:
标签: flowtype non-nullable