facebookarchive / ide-flowtype

Flow support for Atom IDE
Other
178 stars 17 forks source link

Not giving any errors when using named imports incorrectly #16

Closed saadq closed 7 years ago

saadq commented 7 years ago

There does seem to be errors coming when using the module name incorrectly:

screen shot 2017-09-12 at 7 04 37 pm

However, there is no issue when there is a typo with the named import like combineRedcers here:

screen shot 2017-09-12 at 7 04 58 pm

This is on macOS Sierra with Atom v1.20.0

wbinnssmith commented 7 years ago

hi @saadq! you should use flow-typed to install type definitions for redux, and I believe then Flow should recognize these named exports.

Please re-open if this doesn't resolve your issue or you need clarification!

saadq commented 7 years ago

Ahh, apologies – not sure what happened there. Thanks for the quick reply.