我有一个redux observable epic
如下
export const fetchUserEpic:Epic<Action, RootState, any> =
(action$: ActionsObservable<Action>, store: MiddlewareAPI<RootState> , { getJSON } ): Observable<Action> =>
action$.filter((action: Action) => action.type === actionTypes.FETCH_USER)
.mergeMap( (action: Action) =>
getJSON(`/api/user/${action.payload}`)
.map((response: any) => Actions.fetchUserSuccess(response))
)
一切正常,测试也很棒,但是在编译打字稿代码时,我收到以下警告
semantic error TS6133 'store' is declared but its value is never read.
我该如何解决这个问题