Closed egonm12 closed 4 years ago
It's by design to allow a way to define both payload and meta. If you want to use a tuple as type argument please use payload + meta syntax:
const myAsyncActions = createAsyncAction(
'FETCH_BEGIN',
'FETCH_SUCCESS',
'FETCH_FAILURE'
)<[[string, string], undefined], undefined, undefined>();
Description
The return type of my async actions are not as expected. When I want my payload shape to be
[string, string]
it somehow returnspayload: string; meta: string
. This is not the case when I would do[string, string, string]
. In that casepayload
is of type[string, string, string]
.How to Reproduce
Expected behavior
Actual behavior
Suggested solution(s)
Not looked into possible solutions yet
Project Dependencies