updux/src/types.ts
2019-10-23 13:25:39 -04:00

11 lines
244 B
TypeScript

import { Action } from 'redux';
export type UpduxAction = Action & Partial<{
payload: any,
meta: any,
}>
export type Dictionary<T> = { [key: string]: T };
export type Mutation<S> = (payload: any, action: Action) => (state: S) => S ;