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

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

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

Index Signatures

[index: number]: TextTrack

Properties

readonly
length: number
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null
onchange: ((this: TextTrackList, ev: Event) => any) | null
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null

Methods

item(index: number): TextTrack
addEventListener<K extends keyof TextTrackListEventMap>(
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof TextTrackListEventMap>(
type: K,
listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void