Interface ActionDescEmpty<S>

Describes an action in a non-typed way, for a given state type.

Type Parameters

  • S = any

    The state type

Hierarchy

  • Describes an action with no payload. It also represents a function to create an instance of an action.

    Interface

    ActionDesc

    Returns Action

Properties

actionName: string

The name of the action

Memberof

ActionDescBase

filter: ((action$: Observable<Action>) => Observable<void>)

Type declaration

    • (action$: Observable<Action>): Observable<void>
    • Filters out all actions not corresponding with current description.

      Memberof

      ActionDesc

      Parameters

      • action$: Observable<Action>

      Returns Observable<void>

hasPayload: boolean

Indicates whether the action instances has payload or not.

Memberof

ActionDescBase

is: ((action: Action) => boolean)

Type declaration

    • (action: Action): boolean
    • Returns whether a given action has the same type af this descriptor

      Memberof

      ActionDescBase

      Parameters

      • action: Action

      Returns boolean

prefix: string

The prefix of the action.

Memberof

ActionDescBase

reducer: ReducerOf<S, any>

The reducer of the action for the given state type

Memberof

ActionDescBase

type: string

The type of the action. This is the same value as the action type created using the create function in one of the descending interfaces.

Memberof

ActionDescBase

Generated using TypeDoc