mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05: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[];
|
transfer?: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ProgressEventInit extends EventInit {
|
|
||||||
lengthComputable?: boolean;
|
|
||||||
loaded?: number;
|
|
||||||
total?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface AbstractWorkerEventMap {
|
interface AbstractWorkerEventMap {
|
||||||
"error": ErrorEvent;
|
"error": ErrorEvent;
|
||||||
}
|
}
|
||||||
|
@ -840,17 +834,6 @@ declare class PerformanceMeasure extends PerformanceEntry {
|
||||||
readonly entryType: "measure";
|
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 {
|
declare interface CustomEventInit<T = any> extends EventInit {
|
||||||
detail?: T;
|
detail?: T;
|
||||||
}
|
}
|
||||||
|
|
17
op_crates/web/lib.deno_web.d.ts
vendored
17
op_crates/web/lib.deno_web.d.ts
vendored
|
@ -148,6 +148,23 @@ interface EventListenerOptions {
|
||||||
capture?: boolean;
|
capture?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ProgressEventInit extends EventInit {
|
||||||
|
lengthComputable?: boolean;
|
||||||
|
loaded?: number;
|
||||||
|
total?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 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;
|
||||||
|
}
|
||||||
|
|
||||||
/** Decodes a string of data which has been encoded using base-64 encoding.
|
/** Decodes a string of data which has been encoded using base-64 encoding.
|
||||||
*
|
*
|
||||||
* console.log(atob("aGVsbG8gd29ybGQ=")); // outputs 'hello world'
|
* console.log(atob("aGVsbG8gd29ybGQ=")); // outputs 'hello world'
|
||||||
|
|
Loading…
Reference in a new issue