Typescript 由于无法定义操作,store.dispatch(sagaActionForAsync)无法工作
我使用store.dispatch调用Saga的动作。 但是,我遇到以下错误,无法运行store.dispatchTypescript 由于无法定义操作,store.dispatch(sagaActionForAsync)无法工作,typescript,redux,react-redux,redux-saga,Typescript,Redux,React Redux,Redux Saga,我使用store.dispatch调用Saga的动作。 但是,我遇到以下错误,无法运行store.dispatch Argument of type 'IncrementAsyncAction' is not assignable to parameter of type 'IncrementAction | DecrementAction'. Type 'IncrementAsyncAction' is not assignable to type 'DecrementAction'.
Argument of type 'IncrementAsyncAction' is not assignable to parameter of type 'IncrementAction | DecrementAction'.
Type 'IncrementAsyncAction' is not assignable to type 'DecrementAction'.
Types of property 'type' are incompatible.
Type '"INCREMENT_ASYNC"' is not assignable to type '"DECREMENT"'.ts(2345)
我可以用React Redux的调度调用它。
如何使store.dispatch了解该操作