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
| Parameter | Type | Description |
|---|---|---|
actionName | string | Unique action name. |
fn | (target, ...args) => Generator<any, TResult, any> | Function. |
Returns
The function as an standalone flow.
(target, ...args) => Promise<TResult>