UNPKG

react-principal

Version:

A state management with react context for apps which using hooks.

14 lines 340 B
export declare type Action<S> = { type: any; payload: Partial<S>; }; declare type ActionHandler<S> = { type: any; payload: S; }; export declare type Reducer<S, A = ActionHandler<S>> = (state: S, action: A) => S; export declare type Optional<T> = { [P in keyof T]?: T[P]; }; export {}; //# sourceMappingURL=types.d.ts.map