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

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

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

Properties

data: ArrayBuffer

Methods

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