Skip to main content
Module

x/evt/mod.ts>dom.XMLHttpRequestEventTarget

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

Properties

onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null

Methods

addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(
type: K,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(
type: K,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void