Function: standaloneAction()
function standaloneAction<FN>(actionName, fn): FN;
Creates a standalone action. A standalone action must always take an existing tree node as first argument.
Type Parameters
| Type Parameter |
|---|
FN extends (target, ...args) => any |
Parameters
| Parameter | Type | Description |
|---|---|---|
actionName | string | Unique action name. |
fn | FN | Function. |
Returns
FN
The function as an standalone action.