Reducer
Reducer<State, Actions>: (state: State, action: keyof Actions, payload: Actions[keyof Actions]) => State
Type parameters
Type declaration
-
- (state: State, action: keyof Actions, payload: Actions[keyof Actions]): State
-
Parameters
-
state: State
-
action: keyof Actions
-
payload: Actions[keyof Actions]
Returns State