A base class for objects that can emit and listen to custom events.
It provides a typed eventing mechanism, allowing for the registration and removal of listeners,
and the firing of events with associated payloads.
An EventMap-shaped type that defines the events supported by this source.
Parameters
source: unknown = null
The object that will be reported as the source of events fired by this instance.
If null or undefined, the EventSource instance itself will be the source.
A base class for objects that can emit and listen to custom events. It provides a typed eventing mechanism, allowing for the registration and removal of listeners, and the firing of events with associated payloads.