Module

x/evt/lib/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.3.1/lib/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