Skip to main content
Go to Latest
method default.prototype.off
import { default } from "https://deno.land/x/evtemitter@2.0.0/EventEmitter.ts";

remove all EventListeners

Type Parameters

K extends keyof T & string

remove all EventListeners for a specific event

Type Parameters

K extends keyof T & string

Parameters

type: K

the name of the event all listeners should be removed

remove all EventListeners for multiple specific events

Type Parameters

K extends keyof T & string

Parameters

types: K[]

an array of events for who all listeners should be removed

remove a specific EventListener for a specific event

Type Parameters

K extends keyof T & string

Parameters

type: K

the name of the event for that all listeners should be removed

callback: CustomEventCallbackOn<T[K]>

the callback function to remove

remove a specific EventListener for multiple specific events

Type Parameters

K extends keyof T & string

Parameters

types: K[]

an array of events for who all listeners should be removed

callback: CustomEventCallbackOn<T[K]>

the callback function to remove