Const itemsReducer
itemsReducer: function = createReducer({},{[ActionTypes.setItems]: setItems,[ActionTypes.setItem]: setItem,[ActionTypes.removeItem]: removeItem,[ActionTypes.optItem]: optItem,[ActionTypes.selectItem]: selectItem,})
Type declaration
-
- (state: S | undefined, action: A): S
-
Parameters
-
state: S | undefined
-
action: A
Returns S