-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
StoreEnhancer has incorrect parameter type #3768
Comments
Partially addressed by #3772, but there's more to be done after that PR gets merged. |
If the code works in JS but fails only because of typing in TypeScript, I'd suggest you to use "any" to ignore it: |
@alestor123 The issue is that there is no compilation error and there should be. The code above currently compiles; I don't need to do any casting. I'm aware that I can use I have also a PR (#3776) attached to this issue that fixes the problem. As the PR shows, having the correct types actually caught a few bugs in the tests that were easy to overlook with current types. Let me know if you think the proposed solution is incorrect. |
Prior Issues
Introduced in #3524.
What is the current behavior?
Code
Output
Compiler Options
Playground Link: Provided
Steps to Reproduce
See code above.
What is the expected behavior?
Trying to access enhanced properties right after calling
createStore
should result in a type error.Environment Details
N/A
The text was updated successfully, but these errors were encountered: