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