TransactionEvent
Hierarchy
- Event<string>
- TransactionEvent
Index
Constructors
constructor
Parameters
payload: string
userData: object = {}
Returns TransactionEvent
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
The TransactionEvent class is the superclass for all events in relation to transactions. A transaction processes actions generated from model and resource diffs. Thus, the events are usually in relation with these actions.
It is not a good practice to create an event from this class directly, but should rather create one from one of the subclasses. This promotes a more accurate classification of events.
The Event instance.