Function standaloneAction

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

    Type Parameters

    • FN extends ((target, ...args) => any)

    Parameters

    • actionName: string

      Unique action name.

    • fn: FN

      Function.

    Returns FN

    The function as an standalone action.