/* @flow */
(undefined: $Shape<{}>); // no error
(null: $Shape<{ a: 1 }>); // no error either
I know that $Shape<T> is sort of an undocumented feature, yet I doubt this is expected behaviour.
v0.85 - still works incorrect.
Workaround type SaveShape<T> = $Shape<T> & {};
Try Flow
fixed in v0.90.0
Most helpful comment
fixed in v0.90.0