typescript-fsa-redux-thunk
typescript-fsa-redux-thunk copied to clipboard
No error if no params to async action were passed
In the main example from the readme, if I dispatch a login action without params, no errors will be thrown:
await store.dispatch(login());
because login action creator has optional params type (in some reason)
const login: ThunkFunction
(params?: LoginParams | undefined) => ...
It seems like a bug. It's not type-safe. See a repro case here: https://codesandbox.io/s/typescript-mzr5r
@xdave the issue may be solved.