Abstract
Simple event emitter class that allows adding event listeners and emitting events. Events can be emitted by accessing the protected emitter field.
emitter
A type representing the events that the instance can emit and listen to.
Protected
Readonly
An event emitter for handling custom events.
Adds an event listener for a specific event.
The type of the event key.
The event to listen to.
The callback function to be invoked when the event is emitted.
An EventHandle with a remove method to unsubscribe the listener.
remove
Simple event emitter class that allows adding event listeners and emitting events. Events can be emitted by accessing the protected
emitterfield.