Event emitter
()
Event emitter class is used internally by the map.
Evented
(type, data?)
Calls all event listeners with event type type
type
K
Event type
data?
M[K]
Data transferred to events
this
(type, listener)
Removes event listener registered with on
on
listener
(ev: M[K]) => void
Event handler
Registers event listener
Registers event listener which will be called once