You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you open to adding a Payload utility type? I think the following would be fairly useful:
constaction=createActionCreator('FOO',resolve=>(foo: string)=>resolve({ foo }),)// Get the payload type of this actionconstFooPayload=Payload<typeofaction>
Essentially I think you can do something like this but it would be better to make it generic.
typePayload=(ReturnType<typeofaction>)['payload']
The text was updated successfully, but these errors were encountered:
Are you open to adding a
Payload
utility type? I think the following would be fairly useful:Essentially I think you can do something like this but it would be better to make it generic.
The text was updated successfully, but these errors were encountered: