Skip to main content

Action

Callable

  • Action(type: NodeType): (constructor: any) => void

  • An @Action is a class decorator to be placed on top of a class that represents an action of one of ModelType.

    • A NodeType.MODEL action must implement the IModelAction interface.
    • A NodeType.OVERLAY action must implement the IModelAction interface.
    • A NodeType.RESOURCE action must implement the IResourceAction interface.
    • A NodeType.SHARED_RESOURCE action must implement the IResourceAction interface.
    @example
    @Action(ModelType.MODEL)
    export class MyModelAction implements IModelAction { ... }
    @see

    Definition of Actions.


    Parameters

    • type: NodeType

      The type of Model being decorated.

    Returns (constructor: any) => void

    The decorated class.

      • (constructor: any): void
      • Parameters

        • constructor: any

        Returns void