I'm working on porting my app to use Flow types. I also use the Nuclide IDE which shows me my flow coverage. I'm trying to get all my files to 100% coverage so I can have type-safe code. I'm encountering a situation in which Nuclide shows that my code doesn't have type coverage, but I'm not sure how to fix it:
const ReduxWrapper = connect(mapState, mapEvents)(Component)
export default ReduxWrapper
Nuclide says that ReduxWrapper isn't covered by Flow. Why is that, and how can I fix it?
Other Notes:
You can try to use flow-typed library which will add to your project flowtype definitions of your dependencies.
Take a look here https://github.com/flowtype/flow-typed/blob/master/definitions/npm/react-redux_v4.x.x/flow_v0.30.x-/react-redux_v4.x.x.js