Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
declare own Dispatch and Store interfaces
The current implementation of the typings makes it impossible to create a middleware that only handles standard actions. This means a middleware must handle thunked actions even though it never actually handles them during runtime. (see issue and examples in reduxjs#82) By declaring the Dispatch and Store interfaces again instead of overloading the original implementation of redux a consumer of redux-thunk can choose the right implementation for his use case (e.g. ActionCreator vs. Middleware). fixes reduxjs#82
- Loading branch information