Function action

  • Creates an action description with a typed payload, given a module prefix, an action name and an optional full reducer.

    Returns

    An action description.

    Type Parameters

    • T = any

      The action payload type

    • S = any

      The state type

    Parameters

    • prefix: string

      The prefix or module name to prepend to the action name to obtain a unique action type.

    • actionName: string

      The action name. Should be unique in the prefix.

    • Optional reducer: ReducerOf<S, T>

      An optional reducer function

    Returns ActionDesc<T, S>

Generated using TypeDoc