Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/lib.dom.ts>HTMLDocument

💧EventEmitter's typesafe replacement
Go to Latest
interface HTMLDocument
implements Document
import { type HTMLDocument } from "https://deno.land/x/evt@v2.5.3/lib/types/lib.dom.ts";

The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object.

Methods

addEventListener<K extends keyof DocumentEventMap>(
type: K,
listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof DocumentEventMap>(
type: K,
listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void