Type alias ReducerOf<S, T>

ReducerOf<S, T>: ((s: S, p: T) => S)

Type Parameters

  • S

    The state type

  • T = any

    The payload type for the action

Type declaration

    • (s: S, p: T): S
    • A full reducer function is such that receives a previous state and the payload of a current action, and returns a new (or the same unmodified previous) state.

      Export

      Parameters

      • s: S
      • p: T

      Returns S

Generated using TypeDoc