-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
listenerMiddleware
type error in matcher using custom actions.
#4641
Comments
Could you post what the type error you're getting is? #3862 is also likely related. |
Thank you for the swift response. Here is the ts-error:
This does provide
|
No, |
listenerMiddleware
type error in matcher and predicate using custom actions.listenerMiddleware
type error in matcher using custom actions.
I have a codebase using legacy redux patterns and trying to slowly but steadily transition to using modern redux. I have a set of old Actions that are created similiar to
ExtraAction
mentioned below. When using thelistenerMiddleware
to add a set of type guards as matchers using theisAnyOf
utility as demonstrated below, I see a type error on the matcher.Also, it seems as the type inferred from the predicate (probably the matcher to) doesn't carry along into effect callback.The text was updated successfully, but these errors were encountered: