Based on definitions done by @gcanti in reduxjs/redux#1887.
src/Counter.js
is 100% Flow covered connected component.
Flow can check props for it: try removing text
prop for Counter in src/App.js
.
If you want to use ownProps
inside the connected component (not just mapStateToProps
/mapDispatchToProps
), you should merge ownProps
into stateProps
for the type check.
- Typed thunked actions
- Use $Exact type to filter out redundant props
npm run flow