Now that some projects are using exact-by-default syntax, we should change the exported flow types here to be compatible with both exact-by-default and non-exact-by-default codebases.
To do that, we can use the ambiguous-object-type lint, which will error on uses of {} without explicitly being exact {||} or inexact {...}.
To test, I ran flow check and made sure there were no errors in index.js.flow, but there were other module resolution errors.
Now that some projects are using exact-by-default syntax, we should change the exported flow types here to be compatible with both exact-by-default and non-exact-by-default codebases.
To do that, we can use the
ambiguous-object-type
lint, which will error on uses of{}
without explicitly being exact{||}
or inexact{...}
.To test, I ran
flow check
and made sure there were no errors inindex.js.flow
, but there were other module resolution errors.