Module

x/evt/lib/index.ts>dom.HTMLAudioElement

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLAudioElement
implements HTMLMediaElement
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { HTMLAudioElement } = dom;

Provides access to the properties of elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface.

Methods

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