@types/web 0.0.134 → 0.0.136
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 +53 -7
- 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.136 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.136.
|
package/index.d.ts
CHANGED
|
@@ -203,6 +203,9 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
|
|
|
203
203
|
interface CheckVisibilityOptions {
|
|
204
204
|
checkOpacity?: boolean;
|
|
205
205
|
checkVisibilityCSS?: boolean;
|
|
206
|
+
contentVisibilityAuto?: boolean;
|
|
207
|
+
opacityProperty?: boolean;
|
|
208
|
+
visibilityProperty?: boolean;
|
|
206
209
|
}
|
|
207
210
|
|
|
208
211
|
interface ClientQueryOptions {
|
|
@@ -8714,7 +8717,7 @@ interface Gamepad {
|
|
|
8714
8717
|
readonly mapping: GamepadMappingType;
|
|
8715
8718
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
|
|
8716
8719
|
readonly timestamp: DOMHighResTimeStamp;
|
|
8717
|
-
readonly vibrationActuator: GamepadHapticActuator
|
|
8720
|
+
readonly vibrationActuator: GamepadHapticActuator;
|
|
8718
8721
|
}
|
|
8719
8722
|
|
|
8720
8723
|
declare var Gamepad: {
|
|
@@ -8764,8 +8767,6 @@ declare var GamepadEvent: {
|
|
|
8764
8767
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
|
|
8765
8768
|
*/
|
|
8766
8769
|
interface GamepadHapticActuator {
|
|
8767
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */
|
|
8768
|
-
readonly type: GamepadHapticActuatorType;
|
|
8769
8770
|
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
|
|
8770
8771
|
reset(): Promise<GamepadHapticsResult>;
|
|
8771
8772
|
}
|
|
@@ -9476,6 +9477,7 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
9476
9477
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
|
|
9477
9478
|
*/
|
|
9478
9479
|
name: string;
|
|
9480
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */
|
|
9479
9481
|
ping: string;
|
|
9480
9482
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
|
|
9481
9483
|
referrerPolicy: string;
|
|
@@ -9553,6 +9555,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
9553
9555
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
|
|
9554
9556
|
*/
|
|
9555
9557
|
noHref: boolean;
|
|
9558
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */
|
|
9556
9559
|
ping: string;
|
|
9557
9560
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
|
|
9558
9561
|
referrerPolicy: string;
|
|
@@ -10117,6 +10120,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
|
|
10117
10120
|
spellcheck: boolean;
|
|
10118
10121
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
|
|
10119
10122
|
title: string;
|
|
10123
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */
|
|
10120
10124
|
translate: boolean;
|
|
10121
10125
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */
|
|
10122
10126
|
attachInternals(): ElementInternals;
|
|
@@ -10147,7 +10151,11 @@ declare var HTMLElement: {
|
|
|
10147
10151
|
interface HTMLEmbedElement extends HTMLElement {
|
|
10148
10152
|
/** @deprecated */
|
|
10149
10153
|
align: string;
|
|
10150
|
-
/**
|
|
10154
|
+
/**
|
|
10155
|
+
* Sets or retrieves the height of the object.
|
|
10156
|
+
*
|
|
10157
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height)
|
|
10158
|
+
*/
|
|
10151
10159
|
height: string;
|
|
10152
10160
|
/**
|
|
10153
10161
|
* Sets or retrieves the name of the object.
|
|
@@ -10157,7 +10165,11 @@ interface HTMLEmbedElement extends HTMLElement {
|
|
|
10157
10165
|
/** Sets or retrieves a URL to be loaded by the object. */
|
|
10158
10166
|
src: string;
|
|
10159
10167
|
type: string;
|
|
10160
|
-
/**
|
|
10168
|
+
/**
|
|
10169
|
+
* Sets or retrieves the width of the object.
|
|
10170
|
+
*
|
|
10171
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width)
|
|
10172
|
+
*/
|
|
10161
10173
|
width: string;
|
|
10162
10174
|
getSVGDocument(): Document | null;
|
|
10163
10175
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -11301,7 +11313,11 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
11301
11313
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)
|
|
11302
11314
|
*/
|
|
11303
11315
|
href: string;
|
|
11304
|
-
/**
|
|
11316
|
+
/**
|
|
11317
|
+
* Sets or retrieves the language code of the object.
|
|
11318
|
+
*
|
|
11319
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)
|
|
11320
|
+
*/
|
|
11305
11321
|
hreflang: string;
|
|
11306
11322
|
imageSizes: string;
|
|
11307
11323
|
imageSrcset: string;
|
|
@@ -12093,6 +12109,7 @@ declare var HTMLOptionsCollection: {
|
|
|
12093
12109
|
};
|
|
12094
12110
|
|
|
12095
12111
|
interface HTMLOrSVGElement {
|
|
12112
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
|
|
12096
12113
|
autofocus: boolean;
|
|
12097
12114
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
|
|
12098
12115
|
readonly dataset: DOMStringMap;
|
|
@@ -12343,6 +12360,7 @@ interface HTMLScriptElement extends HTMLElement {
|
|
|
12343
12360
|
* @deprecated
|
|
12344
12361
|
*/
|
|
12345
12362
|
charset: string;
|
|
12363
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
|
|
12346
12364
|
crossOrigin: string | null;
|
|
12347
12365
|
/** Sets or retrieves the status of the script. */
|
|
12348
12366
|
defer: boolean;
|
|
@@ -13446,11 +13464,13 @@ interface HTMLVideoElement extends HTMLMediaElement {
|
|
|
13446
13464
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
|
|
13447
13465
|
*/
|
|
13448
13466
|
width: number;
|
|
13467
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback) */
|
|
13449
13468
|
cancelVideoFrameCallback(handle: number): void;
|
|
13450
13469
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
|
|
13451
13470
|
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
|
13452
13471
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
|
|
13453
13472
|
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
|
13473
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback) */
|
|
13454
13474
|
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
|
13455
13475
|
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13456
13476
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -13514,8 +13534,11 @@ declare var Headers: {
|
|
|
13514
13534
|
new(init?: HeadersInit): Headers;
|
|
13515
13535
|
};
|
|
13516
13536
|
|
|
13537
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */
|
|
13517
13538
|
interface Highlight {
|
|
13539
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */
|
|
13518
13540
|
priority: number;
|
|
13541
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */
|
|
13519
13542
|
type: HighlightType;
|
|
13520
13543
|
forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void;
|
|
13521
13544
|
}
|
|
@@ -13525,6 +13548,7 @@ declare var Highlight: {
|
|
|
13525
13548
|
new(...initialRanges: AbstractRange[]): Highlight;
|
|
13526
13549
|
};
|
|
13527
13550
|
|
|
13551
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */
|
|
13528
13552
|
interface HighlightRegistry {
|
|
13529
13553
|
forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
|
|
13530
13554
|
}
|
|
@@ -14528,6 +14552,29 @@ declare var KeyframeEffect: {
|
|
|
14528
14552
|
new(source: KeyframeEffect): KeyframeEffect;
|
|
14529
14553
|
};
|
|
14530
14554
|
|
|
14555
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint) */
|
|
14556
|
+
interface LargestContentfulPaint extends PerformanceEntry {
|
|
14557
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element) */
|
|
14558
|
+
readonly element: Element | null;
|
|
14559
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id) */
|
|
14560
|
+
readonly id: string;
|
|
14561
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime) */
|
|
14562
|
+
readonly loadTime: DOMHighResTimeStamp;
|
|
14563
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */
|
|
14564
|
+
readonly renderTime: DOMHighResTimeStamp;
|
|
14565
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size) */
|
|
14566
|
+
readonly size: number;
|
|
14567
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url) */
|
|
14568
|
+
readonly url: string;
|
|
14569
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */
|
|
14570
|
+
toJSON(): any;
|
|
14571
|
+
}
|
|
14572
|
+
|
|
14573
|
+
declare var LargestContentfulPaint: {
|
|
14574
|
+
prototype: LargestContentfulPaint;
|
|
14575
|
+
new(): LargestContentfulPaint;
|
|
14576
|
+
};
|
|
14577
|
+
|
|
14531
14578
|
interface LinkStyle {
|
|
14532
14579
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
|
|
14533
14580
|
readonly sheet: CSSStyleSheet | null;
|
|
@@ -28266,7 +28313,6 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
28266
28313
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
28267
28314
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
28268
28315
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
28269
|
-
type GamepadHapticActuatorType = "vibration";
|
|
28270
28316
|
type GamepadHapticEffectType = "dual-rumble";
|
|
28271
28317
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
28272
28318
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|