updux/src/types.ts
2019-10-21 17:17:56 -04:00

8 lines
174 B
TypeScript

export type Dictionary<T> = { [key: string]: T };
export type Mutation = (payload: any, action: any) => (state:any) => any;
export type Mutations = Dictionary<Mutation>;