@types/web 0.0.206 → 0.0.208
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 +57 -2
- package/package.json +1 -1
- package/ts5.5/index.d.ts +57 -2
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.208 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.208.
|
package/index.d.ts
CHANGED
|
@@ -1027,6 +1027,12 @@ interface MediaSessionActionDetails {
|
|
|
1027
1027
|
seekTime?: number;
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
|
+
interface MediaSettingsRange {
|
|
1031
|
+
max?: number;
|
|
1032
|
+
min?: number;
|
|
1033
|
+
step?: number;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1030
1036
|
interface MediaStreamAudioSourceOptions {
|
|
1031
1037
|
mediaStream: MediaStream;
|
|
1032
1038
|
}
|
|
@@ -1357,6 +1363,20 @@ interface PermissionDescriptor {
|
|
|
1357
1363
|
name: PermissionName;
|
|
1358
1364
|
}
|
|
1359
1365
|
|
|
1366
|
+
interface PhotoCapabilities {
|
|
1367
|
+
fillLightMode?: FillLightMode[];
|
|
1368
|
+
imageHeight?: MediaSettingsRange;
|
|
1369
|
+
imageWidth?: MediaSettingsRange;
|
|
1370
|
+
redEyeReduction?: RedEyeReduction;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
interface PhotoSettings {
|
|
1374
|
+
fillLightMode?: FillLightMode;
|
|
1375
|
+
imageHeight?: number;
|
|
1376
|
+
imageWidth?: number;
|
|
1377
|
+
redEyeReduction?: boolean;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1360
1380
|
interface PictureInPictureEventInit extends EventInit {
|
|
1361
1381
|
pictureInPictureWindow: PictureInPictureWindow;
|
|
1362
1382
|
}
|
|
@@ -2072,6 +2092,11 @@ interface SpeechSynthesisEventInit extends EventInit {
|
|
|
2072
2092
|
utterance: SpeechSynthesisUtterance;
|
|
2073
2093
|
}
|
|
2074
2094
|
|
|
2095
|
+
interface StartViewTransitionOptions {
|
|
2096
|
+
types?: string[] | null;
|
|
2097
|
+
update?: ViewTransitionUpdateCallback | null;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2075
2100
|
interface StaticRangeInit {
|
|
2076
2101
|
endContainer: Node;
|
|
2077
2102
|
endOffset: number;
|
|
@@ -4611,7 +4636,11 @@ interface CSSStyleDeclaration {
|
|
|
4611
4636
|
fontSize: string;
|
|
4612
4637
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */
|
|
4613
4638
|
fontSizeAdjust: string;
|
|
4614
|
-
/**
|
|
4639
|
+
/**
|
|
4640
|
+
* @deprecated
|
|
4641
|
+
*
|
|
4642
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch)
|
|
4643
|
+
*/
|
|
4615
4644
|
fontStretch: string;
|
|
4616
4645
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */
|
|
4617
4646
|
fontStyle: string;
|
|
@@ -5045,8 +5074,11 @@ interface CSSStyleDeclaration {
|
|
|
5045
5074
|
textAlignLast: string;
|
|
5046
5075
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */
|
|
5047
5076
|
textAnchor: string;
|
|
5077
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */
|
|
5048
5078
|
textBox: string;
|
|
5079
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */
|
|
5049
5080
|
textBoxEdge: string;
|
|
5081
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */
|
|
5050
5082
|
textBoxTrim: string;
|
|
5051
5083
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */
|
|
5052
5084
|
textCombineUpright: string;
|
|
@@ -8058,7 +8090,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
8058
8090
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
|
|
8059
8091
|
requestStorageAccess(): Promise<void>;
|
|
8060
8092
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
|
|
8061
|
-
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback): ViewTransition;
|
|
8093
|
+
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition;
|
|
8062
8094
|
/**
|
|
8063
8095
|
* Writes one or more HTML expressions to a document in the specified window.
|
|
8064
8096
|
* @param content Specifies the text and HTML tags to write.
|
|
@@ -15192,6 +15224,23 @@ declare var ImageBitmapRenderingContext: {
|
|
|
15192
15224
|
new(): ImageBitmapRenderingContext;
|
|
15193
15225
|
};
|
|
15194
15226
|
|
|
15227
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture) */
|
|
15228
|
+
interface ImageCapture {
|
|
15229
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/track) */
|
|
15230
|
+
readonly track: MediaStreamTrack;
|
|
15231
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoCapabilities) */
|
|
15232
|
+
getPhotoCapabilities(): Promise<PhotoCapabilities>;
|
|
15233
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoSettings) */
|
|
15234
|
+
getPhotoSettings(): Promise<PhotoSettings>;
|
|
15235
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/takePhoto) */
|
|
15236
|
+
takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;
|
|
15237
|
+
}
|
|
15238
|
+
|
|
15239
|
+
declare var ImageCapture: {
|
|
15240
|
+
prototype: ImageCapture;
|
|
15241
|
+
new(videoTrack: MediaStreamTrack): ImageCapture;
|
|
15242
|
+
};
|
|
15243
|
+
|
|
15195
15244
|
/**
|
|
15196
15245
|
* The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().
|
|
15197
15246
|
*
|
|
@@ -16226,6 +16275,10 @@ interface MediaSession {
|
|
|
16226
16275
|
playbackState: MediaSessionPlaybackState;
|
|
16227
16276
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */
|
|
16228
16277
|
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
|
|
16278
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setCameraActive) */
|
|
16279
|
+
setCameraActive(active: boolean): Promise<void>;
|
|
16280
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setMicrophoneActive) */
|
|
16281
|
+
setMicrophoneActive(active: boolean): Promise<void>;
|
|
16229
16282
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */
|
|
16230
16283
|
setPositionState(state?: MediaPositionState): void;
|
|
16231
16284
|
}
|
|
@@ -29683,6 +29736,7 @@ type EncodedVideoChunkType = "delta" | "key";
|
|
|
29683
29736
|
type EndOfStreamError = "decode" | "network";
|
|
29684
29737
|
type EndingType = "native" | "transparent";
|
|
29685
29738
|
type FileSystemHandleKind = "directory" | "file";
|
|
29739
|
+
type FillLightMode = "auto" | "flash" | "off";
|
|
29686
29740
|
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
|
29687
29741
|
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
29688
29742
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
@@ -29775,6 +29829,7 @@ type ReadableStreamReaderMode = "byob";
|
|
|
29775
29829
|
type ReadableStreamType = "bytes";
|
|
29776
29830
|
type ReadyState = "closed" | "ended" | "open";
|
|
29777
29831
|
type RecordingState = "inactive" | "paused" | "recording";
|
|
29832
|
+
type RedEyeReduction = "always" | "controllable" | "never";
|
|
29778
29833
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
29779
29834
|
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
|
|
29780
29835
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1027,6 +1027,12 @@ interface MediaSessionActionDetails {
|
|
|
1027
1027
|
seekTime?: number;
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
|
+
interface MediaSettingsRange {
|
|
1031
|
+
max?: number;
|
|
1032
|
+
min?: number;
|
|
1033
|
+
step?: number;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1030
1036
|
interface MediaStreamAudioSourceOptions {
|
|
1031
1037
|
mediaStream: MediaStream;
|
|
1032
1038
|
}
|
|
@@ -1357,6 +1363,20 @@ interface PermissionDescriptor {
|
|
|
1357
1363
|
name: PermissionName;
|
|
1358
1364
|
}
|
|
1359
1365
|
|
|
1366
|
+
interface PhotoCapabilities {
|
|
1367
|
+
fillLightMode?: FillLightMode[];
|
|
1368
|
+
imageHeight?: MediaSettingsRange;
|
|
1369
|
+
imageWidth?: MediaSettingsRange;
|
|
1370
|
+
redEyeReduction?: RedEyeReduction;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
interface PhotoSettings {
|
|
1374
|
+
fillLightMode?: FillLightMode;
|
|
1375
|
+
imageHeight?: number;
|
|
1376
|
+
imageWidth?: number;
|
|
1377
|
+
redEyeReduction?: boolean;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1360
1380
|
interface PictureInPictureEventInit extends EventInit {
|
|
1361
1381
|
pictureInPictureWindow: PictureInPictureWindow;
|
|
1362
1382
|
}
|
|
@@ -2072,6 +2092,11 @@ interface SpeechSynthesisEventInit extends EventInit {
|
|
|
2072
2092
|
utterance: SpeechSynthesisUtterance;
|
|
2073
2093
|
}
|
|
2074
2094
|
|
|
2095
|
+
interface StartViewTransitionOptions {
|
|
2096
|
+
types?: string[] | null;
|
|
2097
|
+
update?: ViewTransitionUpdateCallback | null;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2075
2100
|
interface StaticRangeInit {
|
|
2076
2101
|
endContainer: Node;
|
|
2077
2102
|
endOffset: number;
|
|
@@ -4605,7 +4630,11 @@ interface CSSStyleDeclaration {
|
|
|
4605
4630
|
fontSize: string;
|
|
4606
4631
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */
|
|
4607
4632
|
fontSizeAdjust: string;
|
|
4608
|
-
/**
|
|
4633
|
+
/**
|
|
4634
|
+
* @deprecated
|
|
4635
|
+
*
|
|
4636
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch)
|
|
4637
|
+
*/
|
|
4609
4638
|
fontStretch: string;
|
|
4610
4639
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */
|
|
4611
4640
|
fontStyle: string;
|
|
@@ -5039,8 +5068,11 @@ interface CSSStyleDeclaration {
|
|
|
5039
5068
|
textAlignLast: string;
|
|
5040
5069
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */
|
|
5041
5070
|
textAnchor: string;
|
|
5071
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */
|
|
5042
5072
|
textBox: string;
|
|
5073
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */
|
|
5043
5074
|
textBoxEdge: string;
|
|
5075
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */
|
|
5044
5076
|
textBoxTrim: string;
|
|
5045
5077
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */
|
|
5046
5078
|
textCombineUpright: string;
|
|
@@ -8051,7 +8083,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
8051
8083
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
|
|
8052
8084
|
requestStorageAccess(): Promise<void>;
|
|
8053
8085
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
|
|
8054
|
-
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback): ViewTransition;
|
|
8086
|
+
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition;
|
|
8055
8087
|
/**
|
|
8056
8088
|
* Writes one or more HTML expressions to a document in the specified window.
|
|
8057
8089
|
* @param content Specifies the text and HTML tags to write.
|
|
@@ -15172,6 +15204,23 @@ declare var ImageBitmapRenderingContext: {
|
|
|
15172
15204
|
new(): ImageBitmapRenderingContext;
|
|
15173
15205
|
};
|
|
15174
15206
|
|
|
15207
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture) */
|
|
15208
|
+
interface ImageCapture {
|
|
15209
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/track) */
|
|
15210
|
+
readonly track: MediaStreamTrack;
|
|
15211
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoCapabilities) */
|
|
15212
|
+
getPhotoCapabilities(): Promise<PhotoCapabilities>;
|
|
15213
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoSettings) */
|
|
15214
|
+
getPhotoSettings(): Promise<PhotoSettings>;
|
|
15215
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/takePhoto) */
|
|
15216
|
+
takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;
|
|
15217
|
+
}
|
|
15218
|
+
|
|
15219
|
+
declare var ImageCapture: {
|
|
15220
|
+
prototype: ImageCapture;
|
|
15221
|
+
new(videoTrack: MediaStreamTrack): ImageCapture;
|
|
15222
|
+
};
|
|
15223
|
+
|
|
15175
15224
|
/**
|
|
15176
15225
|
* The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().
|
|
15177
15226
|
*
|
|
@@ -16206,6 +16255,10 @@ interface MediaSession {
|
|
|
16206
16255
|
playbackState: MediaSessionPlaybackState;
|
|
16207
16256
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */
|
|
16208
16257
|
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
|
|
16258
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setCameraActive) */
|
|
16259
|
+
setCameraActive(active: boolean): Promise<void>;
|
|
16260
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setMicrophoneActive) */
|
|
16261
|
+
setMicrophoneActive(active: boolean): Promise<void>;
|
|
16209
16262
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */
|
|
16210
16263
|
setPositionState(state?: MediaPositionState): void;
|
|
16211
16264
|
}
|
|
@@ -29661,6 +29714,7 @@ type EncodedVideoChunkType = "delta" | "key";
|
|
|
29661
29714
|
type EndOfStreamError = "decode" | "network";
|
|
29662
29715
|
type EndingType = "native" | "transparent";
|
|
29663
29716
|
type FileSystemHandleKind = "directory" | "file";
|
|
29717
|
+
type FillLightMode = "auto" | "flash" | "off";
|
|
29664
29718
|
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
|
29665
29719
|
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
29666
29720
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
@@ -29753,6 +29807,7 @@ type ReadableStreamReaderMode = "byob";
|
|
|
29753
29807
|
type ReadableStreamType = "bytes";
|
|
29754
29808
|
type ReadyState = "closed" | "ended" | "open";
|
|
29755
29809
|
type RecordingState = "inactive" | "paused" | "recording";
|
|
29810
|
+
type RedEyeReduction = "always" | "controllable" | "never";
|
|
29756
29811
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
29757
29812
|
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
|
|
29758
29813
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|