Function standaloneFlow

  • Creates a standalone flow. A standalone flow must always take an existing tree node as first argument.

    Type Parameters

    • TTarget
    • TArgs extends any[]
    • TResult

    Parameters

    • actionName: string

      Unique action name.

    • fn: (target: TTarget, ...args: TArgs) => Generator<any, TResult, any>

      Function.

    Returns (target: TTarget, ...args: TArgs) => Promise<TResult>

    The function as an standalone flow.