@types/web 0.0.127 → 0.0.129
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 +39 -6
- 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.129 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.129.
|
package/index.d.ts
CHANGED
|
@@ -2515,7 +2515,9 @@ declare var AnimationEvent: {
|
|
|
2515
2515
|
};
|
|
2516
2516
|
|
|
2517
2517
|
interface AnimationFrameProvider {
|
|
2518
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
|
|
2518
2519
|
cancelAnimationFrame(handle: number): void;
|
|
2520
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
|
|
2519
2521
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
2520
2522
|
}
|
|
2521
2523
|
|
|
@@ -4884,7 +4886,11 @@ interface CSSStyleDeclaration {
|
|
|
4884
4886
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)
|
|
4885
4887
|
*/
|
|
4886
4888
|
webkitMaskClip: string;
|
|
4887
|
-
/**
|
|
4889
|
+
/**
|
|
4890
|
+
* @deprecated This is a legacy alias of `maskComposite`.
|
|
4891
|
+
*
|
|
4892
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)
|
|
4893
|
+
*/
|
|
4888
4894
|
webkitMaskComposite: string;
|
|
4889
4895
|
/**
|
|
4890
4896
|
* @deprecated This is a legacy alias of `maskImage`.
|
|
@@ -11530,6 +11536,7 @@ interface HTMLMediaElement extends HTMLElement {
|
|
|
11530
11536
|
preservesPitch: boolean;
|
|
11531
11537
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */
|
|
11532
11538
|
readonly readyState: number;
|
|
11539
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */
|
|
11533
11540
|
readonly remote: RemotePlayback;
|
|
11534
11541
|
/**
|
|
11535
11542
|
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
|
|
@@ -12503,6 +12510,8 @@ interface HTMLSelectElement extends HTMLElement {
|
|
|
12503
12510
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
|
|
12504
12511
|
*/
|
|
12505
12512
|
setCustomValidity(error: string): void;
|
|
12513
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */
|
|
12514
|
+
showPicker(): void;
|
|
12506
12515
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
12507
12516
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
12508
12517
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -16733,7 +16742,7 @@ declare var OscillatorNode: {
|
|
|
16733
16742
|
};
|
|
16734
16743
|
|
|
16735
16744
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */
|
|
16736
|
-
interface OverconstrainedError extends
|
|
16745
|
+
interface OverconstrainedError extends DOMException {
|
|
16737
16746
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */
|
|
16738
16747
|
readonly constraint: string;
|
|
16739
16748
|
}
|
|
@@ -18146,7 +18155,7 @@ interface RTCPeerConnectionEventMap {
|
|
|
18146
18155
|
"connectionstatechange": Event;
|
|
18147
18156
|
"datachannel": RTCDataChannelEvent;
|
|
18148
18157
|
"icecandidate": RTCPeerConnectionIceEvent;
|
|
18149
|
-
"icecandidateerror":
|
|
18158
|
+
"icecandidateerror": RTCPeerConnectionIceErrorEvent;
|
|
18150
18159
|
"iceconnectionstatechange": Event;
|
|
18151
18160
|
"icegatheringstatechange": Event;
|
|
18152
18161
|
"negotiationneeded": Event;
|
|
@@ -18181,7 +18190,7 @@ interface RTCPeerConnection extends EventTarget {
|
|
|
18181
18190
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */
|
|
18182
18191
|
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
|
|
18183
18192
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */
|
|
18184
|
-
onicecandidateerror: ((this: RTCPeerConnection, ev:
|
|
18193
|
+
onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;
|
|
18185
18194
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */
|
|
18186
18195
|
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
18187
18196
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */
|
|
@@ -21268,6 +21277,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
21268
21277
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
21269
21278
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
|
21270
21279
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
21280
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
|
|
21271
21281
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
21272
21282
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
|
21273
21283
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
@@ -25681,6 +25691,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
|
|
|
25681
25691
|
"DOMContentLoaded": Event;
|
|
25682
25692
|
"devicemotion": DeviceMotionEvent;
|
|
25683
25693
|
"deviceorientation": DeviceOrientationEvent;
|
|
25694
|
+
"deviceorientationabsolute": DeviceOrientationEvent;
|
|
25684
25695
|
"gamepadconnected": GamepadEvent;
|
|
25685
25696
|
"gamepaddisconnected": GamepadEvent;
|
|
25686
25697
|
"orientationchange": Event;
|
|
@@ -25769,6 +25780,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
25769
25780
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
|
|
25770
25781
|
*/
|
|
25771
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;
|
|
25772
25789
|
/**
|
|
25773
25790
|
* @deprecated
|
|
25774
25791
|
*
|
|
@@ -26013,7 +26030,11 @@ interface WindowEventHandlers {
|
|
|
26013
26030
|
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
|
|
26014
26031
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
26015
26032
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
26016
|
-
/**
|
|
26033
|
+
/**
|
|
26034
|
+
* @deprecated
|
|
26035
|
+
*
|
|
26036
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
26037
|
+
*/
|
|
26017
26038
|
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
26018
26039
|
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
26019
26040
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -27384,6 +27405,12 @@ declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | nul
|
|
|
27384
27405
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
|
|
27385
27406
|
*/
|
|
27386
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;
|
|
27387
27414
|
/**
|
|
27388
27415
|
* @deprecated
|
|
27389
27416
|
*
|
|
@@ -27567,7 +27594,9 @@ declare function toString(): string;
|
|
|
27567
27594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
27568
27595
|
*/
|
|
27569
27596
|
declare function dispatchEvent(event: Event): boolean;
|
|
27597
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
|
|
27570
27598
|
declare function cancelAnimationFrame(handle: number): void;
|
|
27599
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
|
|
27571
27600
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
27572
27601
|
/**
|
|
27573
27602
|
* Fires when the user aborts the download.
|
|
@@ -28037,7 +28066,11 @@ declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => an
|
|
|
28037
28066
|
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
28038
28067
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
28039
28068
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
28040
|
-
/**
|
|
28069
|
+
/**
|
|
28070
|
+
* @deprecated
|
|
28071
|
+
*
|
|
28072
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
28073
|
+
*/
|
|
28041
28074
|
declare var onunload: ((this: Window, ev: Event) => any) | null;
|
|
28042
28075
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
|
|
28043
28076
|
declare var localStorage: Storage;
|