UNPKG

402 BTypeScriptView Raw
1import { Reducer } from "./types";
2declare type HandlerAction<S> = {
3 type: any;
4 payload: S;
5};
6declare type Handlers<STATE, ACTION = HandlerAction<STATE>> = {
7 [type: string]: Reducer<STATE, ACTION>;
8};
9declare type CreateReducer = <STATE = any>(handlers: Handlers<STATE>) => Reducer<STATE>;
10export declare const createReducer: CreateReducer;
11export {};
12//# sourceMappingURL=reducer.d.ts.map
\No newline at end of file