aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/types.ts
blob: ffa5d679ebb34102d2611b8a114245c7f4bdd3b3 (plain) (blame)
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]>;