ModuleEvent
Hierarchy
- Event<string>
- ModuleEvent
Index
Constructors
constructor
Parameters
payload: string
userData: object = {}
Returns ModuleEvent
Properties
readonlyheader
Type declaration
timestamp: number
readonlypayload
readonlyuserData
Methods
staticregistrar
The
registrar()
method is explicitly called by the EventSource decorator for a method to enhance the method to auto-emit events.Parameters
rest...args: [EventService, PropertyDescriptor]
Arguments are spread out using the array spread operator.
- args[0] - Instance of EventService.
- args[1] - PropertyDescriptor.
Returns void
This event is emitted when a module's
onInit()
method is run. It emits the name of the module.The Event instance.