Closed hsz closed 4 years ago
Hey @hsz, It is not a false requirement its purpose is to get an inference in case of payload/meta creators with multiple parameters, here is a comparison before and after your change: BEFORE: AFTER:
That makes sense. Thank you for the explanation and delivering the v5!
After the latest release, there is
createAction
available with the following typing:So now if I'd like to specify all of the types, I need to:
So - to define the
arg
type (andmyAction
arguments as well) asstring
I need to providestring[]
. Is it really necessary? It looks like a fake requirement, because it can be handled like:What do you think?