ts-type-forge
    Preparing search index...

    Type Alias Reducer<S, A>

    Reducer: (state: S, action: A) => S

    Represents a reducer function type used typically in state management. Takes the current state S and an action A, and returns the new state S.

    Type Parameters

    • S

      The state type.

    • A

      The action type.

    Type Declaration

      • (state: S, action: A): S
      • Parameters

        • state: S
        • action: A

        Returns S