Decorator for EventTarget allowing to strongly type events and listeners
https://rjzaworski.com/2021/06/event-target-with-typescript
union of dispatched events
the name of event
the class of the event
Optional
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
MDN Reference
Decorator for EventTarget allowing to strongly type events and listeners
See
https://rjzaworski.com/2021/06/event-target-with-typescript