UNPKG

mock-xmlhttprequest

Version:
23 lines (21 loc) 591 B
/** * mock-xmlhttprequest v8.4.1 * (c) 2025 Bertrand Guay-Paquet * @license MIT */ import XhrEvent from './XhrEvent.mts'; import type { TXhrProgressEventNames } from './XhrProgressEventsNames.mts'; /** * XMLHttpRequest ProgressEvent */ export default class XhrProgressEvent extends XhrEvent { readonly loaded: number; readonly total: number; readonly lengthComputable: boolean; /** * @param type Event type * @param loaded Loaded bytes * @param total Total bytes */ constructor(type: TXhrProgressEventNames, loaded?: number, total?: number); }