Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ActionCreatorWithPayload<P, T>

Type Parameters

  • P

  • T extends string = string

Hierarchy

  • BaseActionCreator<P, T>
    • ActionCreatorWithPayload

Callable

  • ActionCreatorWithPayload(payload: P): { payload: P; type: T }
  • Calling this {@link redux#ActionCreator} with an argument will return a PayloadAction of type T with a payload of P

    inheritdoc

    Parameters

    • payload: P

    Returns { payload: P; type: T }

    • payload: P
    • type: T

Index

Properties

Methods

Properties

type: T

Methods

  • match(action: Action<unknown>): action is PayloadAction<P, T, M, E>
  • Parameters

    • action: Action<unknown>

    Returns action is PayloadAction<P, T, M, E>

Generated using TypeDoc