Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infer action types from combineReducers (reduxjs#3411)
* Infer action types from combineReducers This change allows for `combineReducers` to completely infer both the state and action types for its returned reducer. From experience with large TypeScript projects, it's common to see that the action type is not explicitly specified, which results in `AnyAction` in the resulting reducer type. Unfortunately, this will propagate through the type inference for `createStore` resulting in `dispatch` being very weakly typed. This change alone causes a chain reaction of a more correctly (and strongly) typed project with regards to Redux. * Fix formatting issues. Former-commit-id: 2954f00 Former-commit-id: ecf7bd6
- Loading branch information