I am getting this error when combining my epics:
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'.
The following is the code:
import { combineEpics } from 'redux-observable';
import { fetchUserSession } from './sessionEpics';
import { fetchEmployee } from './employeeEpics';
export default combineEpics(
fetchEmployee,
fetchUserSession
);