It looks like you are using a library that does not have type definitions.
With the search for properties where the object is defined in the file, Flow has coverage of 100% of the code without any types:
const foo = { bar: { baz: 2 } }; foo.bar.baz;
The same applies to individual files:
1.js
// @flow export default { bar: { baz: 2 } };
2.js
// @flow import foo from './1.js' foo.bar.baz; // 100% code coverage
However, as soon as something is imported from a file that Flow does not start (either because the stream is disabled, or because of its third-party library that does not use the stream), Flow cannot.
1.js
// @noflow export default { bar: { baz: 2 } };
2.js
// @flow import foo from './1.js' foo.bar.baz; // 0% code coverage
To fix this, you need to provide stream information about types.
You can do several different things.
I hope this is useful enough to give you at least a starting point.
James kyle
source share