@types/web 0.0.126 → 0.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +38 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.128 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.128.
|
package/index.d.ts
CHANGED
|
@@ -1669,6 +1669,7 @@ interface RequestInit {
|
|
|
1669
1669
|
method?: string;
|
|
1670
1670
|
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
|
|
1671
1671
|
mode?: RequestMode;
|
|
1672
|
+
priority?: RequestPriority;
|
|
1672
1673
|
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
|
|
1673
1674
|
redirect?: RequestRedirect;
|
|
1674
1675
|
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
|
|
@@ -2514,7 +2515,9 @@ declare var AnimationEvent: {
|
|
|
2514
2515
|
};
|
|
2515
2516
|
|
|
2516
2517
|
interface AnimationFrameProvider {
|
|
2518
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
|
|
2517
2519
|
cancelAnimationFrame(handle: number): void;
|
|
2520
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
|
|
2518
2521
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
2519
2522
|
}
|
|
2520
2523
|
|
|
@@ -4883,7 +4886,11 @@ interface CSSStyleDeclaration {
|
|
|
4883
4886
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)
|
|
4884
4887
|
*/
|
|
4885
4888
|
webkitMaskClip: string;
|
|
4886
|
-
/**
|
|
4889
|
+
/**
|
|
4890
|
+
* @deprecated This is a legacy alias of `maskComposite`.
|
|
4891
|
+
*
|
|
4892
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)
|
|
4893
|
+
*/
|
|
4887
4894
|
webkitMaskComposite: string;
|
|
4888
4895
|
/**
|
|
4889
4896
|
* @deprecated This is a legacy alias of `maskImage`.
|
|
@@ -11529,6 +11536,7 @@ interface HTMLMediaElement extends HTMLElement {
|
|
|
11529
11536
|
preservesPitch: boolean;
|
|
11530
11537
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */
|
|
11531
11538
|
readonly readyState: number;
|
|
11539
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */
|
|
11532
11540
|
readonly remote: RemotePlayback;
|
|
11533
11541
|
/**
|
|
11534
11542
|
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
|
|
@@ -12502,6 +12510,8 @@ interface HTMLSelectElement extends HTMLElement {
|
|
|
12502
12510
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
|
|
12503
12511
|
*/
|
|
12504
12512
|
setCustomValidity(error: string): void;
|
|
12513
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */
|
|
12514
|
+
showPicker(): void;
|
|
12505
12515
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
12506
12516
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
12507
12517
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -21267,6 +21277,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
21267
21277
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
21268
21278
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
|
21269
21279
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
21280
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
|
|
21270
21281
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
21271
21282
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
|
21272
21283
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
@@ -25680,6 +25691,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
|
|
|
25680
25691
|
"DOMContentLoaded": Event;
|
|
25681
25692
|
"devicemotion": DeviceMotionEvent;
|
|
25682
25693
|
"deviceorientation": DeviceOrientationEvent;
|
|
25694
|
+
"deviceorientationabsolute": DeviceOrientationEvent;
|
|
25683
25695
|
"gamepadconnected": GamepadEvent;
|
|
25684
25696
|
"gamepaddisconnected": GamepadEvent;
|
|
25685
25697
|
"orientationchange": Event;
|
|
@@ -25768,6 +25780,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
25768
25780
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
|
|
25769
25781
|
*/
|
|
25770
25782
|
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
25783
|
+
/**
|
|
25784
|
+
* Available only in secure contexts.
|
|
25785
|
+
*
|
|
25786
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
|
|
25787
|
+
*/
|
|
25788
|
+
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
25771
25789
|
/**
|
|
25772
25790
|
* @deprecated
|
|
25773
25791
|
*
|
|
@@ -26012,7 +26030,11 @@ interface WindowEventHandlers {
|
|
|
26012
26030
|
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
|
|
26013
26031
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
26014
26032
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
26015
|
-
/**
|
|
26033
|
+
/**
|
|
26034
|
+
* @deprecated
|
|
26035
|
+
*
|
|
26036
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
26037
|
+
*/
|
|
26016
26038
|
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
26017
26039
|
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
26018
26040
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -27383,6 +27405,12 @@ declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | nul
|
|
|
27383
27405
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
|
|
27384
27406
|
*/
|
|
27385
27407
|
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
27408
|
+
/**
|
|
27409
|
+
* Available only in secure contexts.
|
|
27410
|
+
*
|
|
27411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
|
|
27412
|
+
*/
|
|
27413
|
+
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
27386
27414
|
/**
|
|
27387
27415
|
* @deprecated
|
|
27388
27416
|
*
|
|
@@ -27566,7 +27594,9 @@ declare function toString(): string;
|
|
|
27566
27594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
27567
27595
|
*/
|
|
27568
27596
|
declare function dispatchEvent(event: Event): boolean;
|
|
27597
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
|
|
27569
27598
|
declare function cancelAnimationFrame(handle: number): void;
|
|
27599
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
|
|
27570
27600
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
27571
27601
|
/**
|
|
27572
27602
|
* Fires when the user aborts the download.
|
|
@@ -28036,7 +28066,11 @@ declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => an
|
|
|
28036
28066
|
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
28037
28067
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
28038
28068
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
28039
|
-
/**
|
|
28069
|
+
/**
|
|
28070
|
+
* @deprecated
|
|
28071
|
+
*
|
|
28072
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
28073
|
+
*/
|
|
28040
28074
|
declare var onunload: ((this: Window, ev: Event) => any) | null;
|
|
28041
28075
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
|
|
28042
28076
|
declare var localStorage: Storage;
|
|
@@ -28306,6 +28340,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
|
|
|
28306
28340
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
28307
28341
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
28308
28342
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
28343
|
+
type RequestPriority = "auto" | "high" | "low";
|
|
28309
28344
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
28310
28345
|
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
|
|
28311
28346
|
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
|