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

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

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

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