Closed septs closed 5 years ago
Payloads of async action creators always carry params
with them. So if the result of async job is void
, the payload of the done
action would look like {params: ...}
.
The code you sent compiles fine if you change the definition of test
to
declare function test(creator: ActionCreator<Success<unknown, void>>): void;
Example code
fsa-issue.zip
Why
void
withResult
?typescript-fsa-redux-thunk
in NO RETURN async proceduresee xdave/typescript-fsa-redux-thunk#17 see xdave/typescript-fsa-redux-thunk#14