react-principal
Version:
A state management with react context for apps which using hooks.
8 lines • 327 B
TypeScript
import { Reducer, Action } from "./types";
declare type Handlers<STATE> = {
[type: string | symbol]: Reducer<STATE>;
};
declare type CreateReducer = <STATE = any>(handlers: Handlers<STATE>) => Reducer<STATE, Action<STATE>>;
export declare const createReducer: CreateReducer;
export {};
//# sourceMappingURL=reducer.d.ts.map