Skip to content

Type Alias: Reducer()<T>

Reducer<T> = (state, action) => T

Defined in: types.ts:106

A function that takes the current state and an action, and returns the updated state (excluding promises).

Type Parameters

T

T = any

Parameters

state

T

action

Action

Returns

T

Released under the MIT License.