abstractBaseEvent <Return, Args, Scope>
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Type parameters
- Return
- Args: unknown[]
- Scope: string = string
Properties
listeners
name
Methods
clearListeners
abstractemit
Emit the event by executing all scoped listeners with the defined arguments.
getListeners
Return a set of listeners for a specific event scope.
getScopes
Return a list of all scopes with listeners.
listen
Register a listener to the event.
once
Register a listener to the event that only triggers once.
unlisten
Remove a listener from the event.
Remove all listeners from the event.