union of dispatched events
the name of event
the class of the event
The dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
the name of event
the class of the event
Decorator for EventTarget allowing to strongly type events and listeners
See
https://rjzaworski.com/2021/06/event-target-with-typescript