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