Abstract
Simple event emitter class that allows adding event listeners and emitting events.
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 object with a remove method to unsubscribe the listener.
remove
Simple event emitter class that allows adding event listeners and emitting events.