import { EventEmitter } from "https://deno.land/x/higa@0.1.2/deno/dep.ts";
Strictly typed Event Emitter for Deno.
Properties
private
readonly
cache: Map<keyof T, EventListener<T>[]>Methods
private
push(slot: keyof T, item: EventListener<T>)private
toJSON()private
toString()Synchronously calls each of the registered listeners (callbacks) in order.
Removes listener(s) from targeted event. By default it gonna delete all listeners from particular event. You can delete specific listener by parsing it as second parameter. It gonna return boolean value depending on result.