UNPKG

react-principal

Version:

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

8 lines 367 B
import { Reducer, Action } from "./types"; declare type Handlers<STATE, ACTION> = { [type: string]: Reducer<STATE, ACTION>; }; declare type CreateReducer = <STATE = any, ACTION extends Action = Action>(handlers: Handlers<STATE, ACTION>) => Reducer<STATE, ACTION>; export declare const createReducer: CreateReducer; export {}; //# sourceMappingURL=reducer.d.ts.map