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