Event <Args, Scope>
Hierarchy
- BaseEvent<void, Args, Scope>
- Event
Index
Constructors
Properties
Methods
Constructors
constructor
Type parameters
- Args: unknown[]
- Scope: string = string
Properties
listeners
name
Methods
clearListeners
emit
Synchronously execute 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.