Beta
Emits an event.
The name or symbol of the event.
Rest
...args: any[]The arguments to pass to the event listeners.
Removes an event listener.
The name or symbol of the event.
The function to remove from the event listeners.
Rest
...args: any[]Registers an event listener.
The name or symbol of the event.
The function to call when the event is emitted.
Rest
...args: any[]Registers a one-time event listener.
The name or symbol of the event.
The function to call when the event is emitted.
Rest
...args: any[]
Type representing an event emitter with methods to manage events.