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
This is for the old typescript-fsa-redux-thunk v1.0.1 (I did try already 2.0.0 beta.8, but the examples didn't work, and it might actually not be production ready yet).
Using dispatch(foo(param))) gives an error: Type '{ async: AsyncActionCreators<any, any, Error>; action: ThunkActionCreator<any, Promise<any>, stri...' is not assignable to type 'ActionCreator<any>'.
The workaround we're using at the moment is to define type for dispatch as plain Function.
I know that typescript-fsa-redux-thunk v2 should fix also the issue, but it would be nice to try to fix v1 also before getting v2 production ready.
The text was updated successfully, but these errors were encountered:
This is for the old
typescript-fsa-redux-thunk
v1.0.1 (I did try already 2.0.0 beta.8, but the examples didn't work, and it might actually not be production ready yet).Example code:
Using
dispatch(foo(param)))
gives an error:Type '{ async: AsyncActionCreators<any, any, Error>; action: ThunkActionCreator<any, Promise<any>, stri...' is not assignable to type 'ActionCreator<any>'.
The workaround we're using at the moment is to define type for dispatch as plain
Function
.I know that typescript-fsa-redux-thunk v2 should fix also the issue, but it would be nice to try to fix v1 also before getting v2 production ready.
The text was updated successfully, but these errors were encountered: