Closed Hypnosphi closed 7 years ago
This is a follow-up to #183
It turned out that the way I used react types in libdef file leads to all of them coercing to any (see https://github.com/flowtype/flow-typed/issues/1209#issuecomment-326756417)
any
This PR fixes that, plus restricts children types to react elements, and items filtered out by Children.toArray (those include undefined, null, and booleans)
Children.toArray
undefined
null
I also made a PR to flow-typed with new libdef, so that it's available for external usage: https://github.com/flowtype/flow-typed/pull/1210
flow-typed
This is a follow-up to #183
It turned out that the way I used react types in libdef file leads to all of them coercing to
any
(see https://github.com/flowtype/flow-typed/issues/1209#issuecomment-326756417)This PR fixes that, plus restricts children types to react elements, and items filtered out by
Children.toArray
(those includeundefined
,null
, and booleans)I also made a PR to
flow-typed
with new libdef, so that it's available for external usage: https://github.com/flowtype/flow-typed/pull/1210