ActionEvent
Hierarchy
- Event<{ message: string; metadata: Record<string, unknown> }>
- ActionEvent
Index
Constructors
constructor
Parameters
optionalname: string
optionalpayload: { message: string; metadata: Record<string, unknown> }
message: string
metadata: Record<string, unknown>
Returns ActionEvent
Properties
readonlyinheritedheader
Type declaration
timestamp: number
readonlyinheritedname
readonlyinheritedpayload
Type declaration
message: string
metadata: Record<string, unknown>
Methods
staticinheritedregistrar
The
registrar()
method is explicitly called by the EventSource decorator for a method to enhance that 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
The ActionEvent class is the superclass for all events within actions. This can be used to emit log events within actions.
Events/Action
The Event instance.