Basic type for all action creators.

Inherit Doc

Type Parameters

  • T extends string = string

Hierarchy

  • Calling this redux#ActionCreator with an argument will return a PayloadAction of type T with a payload of exactly the type of the argument.

    Type Parameters

    • PT extends unknown

    Parameters

    • payload: PT

    Returns {
        payload: PT;
        type: T;
    }

    • payload: PT
    • type: T

Properties

Properties

match: ((action) => action is {
    payload: unknown;
    type: T;
})

Type declaration

    • (action): action is {
          payload: unknown;
          type: T;
      }
    • Parameters

      Returns action is {
          payload: unknown;
          type: T;
      }

type: T

Generated using TypeDoc