mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
chore: move ProgressEvent type to deno.web lib (#8878)
This commit is contained in:
parent
e8587c86bf
commit
9419c06ab5
2 changed files with 17 additions and 17 deletions
17
cli/dts/lib.deno.shared_globals.d.ts
vendored
17
cli/dts/lib.deno.shared_globals.d.ts
vendored
|
@ -643,12 +643,6 @@ interface PostMessageOptions {
|
|||
transfer?: any[];
|
||||
}
|
||||
|
||||
interface ProgressEventInit extends EventInit {
|
||||
lengthComputable?: boolean;
|
||||
loaded?: number;
|
||||
total?: number;
|
||||
}
|
||||
|
||||
interface AbstractWorkerEventMap {
|
||||
"error": ErrorEvent;
|
||||
}
|
||||
|
@ -840,17 +834,6 @@ declare class PerformanceMeasure extends PerformanceEntry {
|
|||
readonly entryType: "measure";
|
||||
}
|
||||
|
||||
/** Events measuring progress of an underlying process, like an HTTP request
|
||||
* (for an XMLHttpRequest, or the loading of the underlying resource of an
|
||||
* <img>, <audio>, <video>, <style> or <link>). */
|
||||
declare class ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
||||
constructor(type: string, eventInitDict?: ProgressEventInit);
|
||||
readonly lengthComputable: boolean;
|
||||
readonly loaded: number;
|
||||
readonly target: T | null;
|
||||
readonly total: number;
|
||||
}
|
||||
|
||||
declare interface CustomEventInit<T = any> extends EventInit {
|
||||
detail?: T;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue