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, ...args) => Generator<any, TResult, any>)

      Function.

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

    The function as an standalone flow.