Skip to main content

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​

ParameterTypeDescription
actionNamestringUnique action name.
fnFNFunction.

Returns​

FN

The function as an standalone action.