import { removeEventListener } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.window.d.ts";
Remove a previously registered event listener from the global scope
const listener = () => { console.log('hello'); };
addEventListener('load', listener);
removeEventListener('load', listener);
Type Parameters
K extends keyof WindowEventMap
Parameters
type: K
listener: (this: Window, ev: WindowEventMap[K]) => any
optional
options: boolean | EventListenerOptionsParameters
listener: EventListenerOrEventListenerObject
optional
options: boolean | EventListenerOptions