UNPKG

986 BTypeScriptView Raw
1import { ProgressEvent } from './progress-event';
2export declare type ProgressEventListener = (event: ProgressEvent) => void;
3export declare type ProgressEventListenerObject = {
4 handleEvent(event: ProgressEvent): void;
5};
6export declare type ProgressEventListenerOrEventListenerObject = ProgressEventListener | ProgressEventListenerObject;
7export declare class XMLHttpRequestEventTarget {
8 onloadstart: ProgressEventListener | null;
9 onprogress: ProgressEventListener | null;
10 onabort: ProgressEventListener | null;
11 onerror: ProgressEventListener | null;
12 onload: ProgressEventListener | null;
13 ontimeout: ProgressEventListener | null;
14 onloadend: ProgressEventListener | null;
15 private listeners;
16 addEventListener(eventType: string, listener?: ProgressEventListenerOrEventListenerObject): void;
17 removeEventListener(eventType: string, listener?: ProgressEventListenerOrEventListenerObject): void;
18 dispatchEvent(event: ProgressEvent): boolean;
19}