Class Workflow<T>

Type Parameters

Hierarchy

  • Workflow

Constructors

Properties

Methods

Constructors

Properties

definition: WorkflowDefinition<T>
events: { [ name in string | number | symbol]?: Function } = {}
state: WorkflowState<T>

Methods

  • Throws

    WorkflowError when next state is not possible to apply.

    Type Parameters

    • K extends string | number | symbol

    Parameters

    • nextState: K
    • Optional event: ExtractClassType<T[K]>

    Returns Promise<void>

Generated using TypeDoc