Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class EventTarget
import { EventTarget } from "https://deno.land/x/darkflare@v5.0.3/types/mod.d.ts";

Constructors

new
EventTarget()

Type Parameters

optional
EventMap extends Record<string, Event> = Record<string, Event>

Methods

addEventListener<Type extends keyof EventMap>(
type: Type,
options?: EventTargetAddEventListenerOptions | boolean,
): void
dispatchEvent(event: EventMap[keyof EventMap]): boolean
removeEventListener<Type extends keyof EventMap>(
type: Type,
options?: EventTargetEventListenerOptions | boolean,
): void