1 2 3 4 5 6 7 8 9 10 11 12 13
import { ObjectMap } from '@0xproject/types'; // Reusable export enum AsyncProcessState { NONE, PENDING, SUCCESS, FAILURE, } export type FunctionType = (...args: any[]) => any; export type ActionCreatorsMapObject = ObjectMap<FunctionType>; export type ActionsUnion<A extends ActionCreatorsMapObject> = ReturnType<A[keyof A]>;