@quadnix/octoDecoratorsActionAction CallableAction(type: NodeType): (constructor: any) => voidAn @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 { ... }@seeDefinition of Actions.Parameterstype: NodeTypeThe type of Model being decorated.Returns (constructor: any) => voidThe decorated class.(constructor: any): voidParametersconstructor: anyReturns void
An
@Action
is a class decorator to be placed on top of a class that represents an action of one of ModelType.Definition of Actions.