Closed rodrigoelp closed 6 years ago
To be more explicit, the may problem is that dispatch should take an A
which extends of Action
and in here, this definition forces an S
of state as an action (which is the reason why the compiler is complaining)...
Has anybody used this type definition successfully before?
Hi @rodrigoelp, I unfortunately don’t maintain the Typescript bindings for this project and rely on PRs from the community to keep it updated. I’d suggest looking through the history of the libdef file to find folks who might be able to answer your questions.
Or, if you want ashoat. I can submit a pull request fixing it. I've checked the bindings for v2.9 and the compilation error is reported there as well (you just need to turn on the proper flags to evaluate your typings).
Interestingly enough, I can't seem to find the typing in the repo I got from the npm package...
PRs are welcome!
Hi, sorry for the delay... Here is the PR.
Feel free to close this issue once it has been merged.
Pro-tip: you can set up a PR to auto-close an issue by just including the text "Fixes #61" in the text of a commit.
Hi, I've started using this dependency in a brand new project and off the bat I get a compilation error from here as follows:
Do you guys know what the problem might be?
I've setup my project with the following dependencies: