1
を与える:combineEpicsは私の叙事詩を組み合わせたときに、私はこのエラーを取得しています型エラー
TS2345: Argument of type 'Epic<SessionAction, GlobalState, any>' is not assignable to parameter of type 'Epic<EmployeeAction, GlobalState, any>'.
Type 'SessionAction' is not assignable to type 'EmployeeAction'.
Types of property 'type' are incompatible.
Type 'SessionActionTypes' is not assignable to type 'EmployeeActionTypes'.
次のコードです:
import { combineEpics } from 'redux-observable';
import { fetchUserSession } from './sessionEpics';
import { fetchEmployee } from './employeeEpics';
export default combineEpics(
fetchEmployee,
fetchUserSession
);
あなたはこれを解決するために管理していましたか? –