You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The $Exact type utility in Flow could be useful to fail when an unknown (possibly misspelled) style property is used. But this fails for some reason when a known vendor property is used.
constcss: $Exact<CSS.Properties<*>>={height: '1px',// <- OKMozAppearance: 'button',// <- Error};// All branches are incompatible:// - Either cannot assign object literal to `css` because property `MozAppearance` is missing in// `StandardLonghandProperties` [1] but exists in object literal [2].// - Or cannot assign object literal to `css` because property `MozAppearance` is missing in// `StandardShorthandProperties` [3] but exists in object literal [2].
The
$Exact
type utility in Flow could be useful to fail when an unknown (possibly misspelled) style property is used. But this fails for some reason when a known vendor property is used.This however works:
All I could find was this bug when
$Exact
is used along with spread. But it doesn't really cover this problem.I'm trying to understand what's happening but I'm not that familiar with Flow.
The text was updated successfully, but these errors were encountered: