import { default } from "https://deno.land/x/evtemitter@v3.1.0/EventEmitter.ts";
Type Parameters
Ev extends ReservedOrUserEventNames<ReservedEvents, UserEvents>
Parameters
type: Ev
the callback to call
callbackToCall: ReservedOrUserListenerAddEventListener<ReservedEvents, UserEvents, Ev>
optional - the callback to use to remove the callback from the listeners Map, it must be the key in the Map. It is only necessary if the callback is added via on or once, because then the key callback differs from its value
optional
callbackToRemove: ReservedOrUserListenerOnOrAddEventListener<ReservedEvents, UserEvents, Ev> = [UNSUPPORTED]Returns
ReservedOrUserListenerAddEventListener<ReservedEvents, UserEvents, Ev>