-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types for dispatch with thunk are incorrect #148
Comments
Can confirm, with redux 4 types ain’t working. |
I can confirm it too. |
Since it doesn’t look lile this package is maintained we switched to some custom code - at the end we didn’t need full store semantics in our action tests, but just a working dispatcher and a way to collect dispatched actions |
This is probably a problem with the That package lists |
Just submitted this update which should allow you to add the ThunkDispatch signature when creating the store: DefinitelyTyped/DefinitelyTyped#26732 When that is merged and released you can do something like:
|
@chungnho Thank you sir. Took me 5 hours to find this. |
👍 to put this in the docs |
I made a TypeScript fork of this library and resolved some open issues at |
If I load you async example into a project, i get the following error on
return store.dispatch(fetchData())
Using Redux 4.0
The text was updated successfully, but these errors were encountered: