An error occurred while loading the file. Please try again.
-
Chloé JACOB authored157344e3
types.ts 472 B
import { Action, AnyAction } from 'redux';
import { ThunkAction, ThunkDispatch } from 'redux-thunk';
import instalikeApi from '../instalikeApi';
import type { RootState } from './store';
export interface AppAction<T extends string, P = unknown> extends Action<T> {
payload: P;
}
export type AppThunkAction<R = void> = ThunkAction<R, RootState, typeof instalikeApi, AnyAction>;
export type AppThunkDispatch = ThunkDispatch<RootState, typeof instalikeApi, AnyAction>;