Function partial

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

    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.

    • pReducer: PartialReducerOf<S, T>

      An optional partial reducer function

    Returns ActionDesc<T, S>

Generated using TypeDoc