Skip to main content

Function: standaloneFlow()

function standaloneFlow<TTarget, TArgs, TResult>(actionName, fn): (target, ...args) => Promise<TResult>;

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

Type Parameters​

Type Parameter
TTarget
TArgs extends any[]
TResult

Parameters​

ParameterTypeDescription
actionNamestringUnique action name.
fn(target, ...args) => Generator<any, TResult, any>Function.

Returns​

The function as an standalone flow.

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