import { RootState } from 'types'; import { Saga } from 'redux-saga'; import { SagaInjectionModes } from 'redux-injectors'; import { Reducer, AnyAction } from '@reduxjs/toolkit'; type RequiredRootState = Required; export type RootStateKeyType = keyof RootState; export type InjectedReducersType = { [P in RootStateKeyType]?: Reducer; }; export interface InjectReducerParams { key: Key; reducer: Reducer; } export interface InjectSagaParams { key: RootStateKeyType | string; saga: Saga; mode?: SagaInjectionModes; }