Function standaloneAction

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

    Type Parameters

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

    Parameters

    • actionName: string

      Unique action name.

    • fn: FN

      Function.

    Returns FN

    The function as an standalone action.