Type alias StateReducer<T, E>

StateReducer<T, E>: ((state: T, event: E) => T)

Type Parameters

  • T

    representing the type of the state

  • E

    representing the type of the event

Type declaration

    • (state: T, event: E): T
    • The state reducer type specifies the signature for reducers used by the Store. StateReducers must be pure functions.

      Parameters

      • state: T
      • event: E

      Returns T

Generated using TypeDoc