main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 6 months ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
544 bytes
|
Rev | Line | |
---|
[d565449] | 1 | declare type Dispatch<Action> = (action: Action) => void;
|
---|
| 2 | interface Store<Action, State> {
|
---|
| 3 | getState: () => State;
|
---|
| 4 | dispatch: Dispatch<Action>;
|
---|
| 5 | }
|
---|
| 6 | declare type Middleware<Action, State> = (store: Store<Action, State>) => (next: Dispatch<Action>) => (action: Action) => void;
|
---|
| 7 | declare const createReducer: <Action, State>(...middlewares: Middleware<Action, State>[]) => (reducer: (state: State, action: Action) => State, initialState: State, initializer?: (value: State) => State) => [State, Dispatch<Action>];
|
---|
| 8 | export default createReducer;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.