JoshuaKGoldberg / JoshuaKGoldberg/TypeStat
Investigate adding specific logic for react-redux
Open
area: new fixer
area: react
area: redux
status: needs investigation
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 47
- Avg merge
- 15h 55m
- Merged PRs (30d)
- 21
Description
### 🚀 Feature Request
There are some practices around react-redux that aren't reasonable to represent using pure type system shenanigans. Off the top of my head:
* `mapStateToProps` should generally take in a type representing the root state
* `dispatch` props are a `Dispatch` type from ... some location, perhaps `react-redux`, perhaps `redux-thunk`, perhaps etc.
#### Existing Behavior
TypeStat has nothing for this.
#### Change Proposal
Let's think about what should be done in TypeStat and file issues for it.
Contributor guide
Assessment
This issue has not been assessed yet.