How to use correct types when using the createAction
helper?
#3121
-
There are places in my app (e.g. some effects and meta reducers) where I'd like to manually specify the action type. Before transitioning to the action creator functions I simply could use the action class at those places, but this is not possible any more. The only thing I managed to do is this:
Which clearly isn't helpful as it has no relation to the stuff defined with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think |
Beta Was this translation helpful? Give feedback.
I think
ReturnType<typeof actionName>
is what you're looking for