type TinyEventDispatcher<T, A>: object;
A record value which holds the listeners that will react to events.
A given listener function reference can only appear once for any given event. Likewise, a given wildcard listener function reference will only be triggered once.
• T
The possible event types that can be received
• A
The type of the event data which can be received
readonly listeners: Map<T, Set<TinyEventListener<T, A>>>;
Holds a set of listeners for each possible event type
readonly starListeners: Set<TinyEventListener<T, A>>;
Holds a set of wildcard listeners which will be invoked for all events