@types/web 0.0.206 → 0.0.207
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 +49 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +49 -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.207 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.207.
|
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;
|
|
@@ -8058,7 +8083,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
8058
8083
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
|
|
8059
8084
|
requestStorageAccess(): Promise<void>;
|
|
8060
8085
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
|
|
8061
|
-
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback): ViewTransition;
|
|
8086
|
+
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition;
|
|
8062
8087
|
/**
|
|
8063
8088
|
* Writes one or more HTML expressions to a document in the specified window.
|
|
8064
8089
|
* @param content Specifies the text and HTML tags to write.
|
|
@@ -15192,6 +15217,23 @@ declare var ImageBitmapRenderingContext: {
|
|
|
15192
15217
|
new(): ImageBitmapRenderingContext;
|
|
15193
15218
|
};
|
|
15194
15219
|
|
|
15220
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture) */
|
|
15221
|
+
interface ImageCapture {
|
|
15222
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/track) */
|
|
15223
|
+
readonly track: MediaStreamTrack;
|
|
15224
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoCapabilities) */
|
|
15225
|
+
getPhotoCapabilities(): Promise<PhotoCapabilities>;
|
|
15226
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoSettings) */
|
|
15227
|
+
getPhotoSettings(): Promise<PhotoSettings>;
|
|
15228
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/takePhoto) */
|
|
15229
|
+
takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;
|
|
15230
|
+
}
|
|
15231
|
+
|
|
15232
|
+
declare var ImageCapture: {
|
|
15233
|
+
prototype: ImageCapture;
|
|
15234
|
+
new(videoTrack: MediaStreamTrack): ImageCapture;
|
|
15235
|
+
};
|
|
15236
|
+
|
|
15195
15237
|
/**
|
|
15196
15238
|
* 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
15239
|
*
|
|
@@ -16226,6 +16268,10 @@ interface MediaSession {
|
|
|
16226
16268
|
playbackState: MediaSessionPlaybackState;
|
|
16227
16269
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */
|
|
16228
16270
|
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
|
|
16271
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setCameraActive) */
|
|
16272
|
+
setCameraActive(active: boolean): Promise<void>;
|
|
16273
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setMicrophoneActive) */
|
|
16274
|
+
setMicrophoneActive(active: boolean): Promise<void>;
|
|
16229
16275
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */
|
|
16230
16276
|
setPositionState(state?: MediaPositionState): void;
|
|
16231
16277
|
}
|
|
@@ -29683,6 +29729,7 @@ type EncodedVideoChunkType = "delta" | "key";
|
|
|
29683
29729
|
type EndOfStreamError = "decode" | "network";
|
|
29684
29730
|
type EndingType = "native" | "transparent";
|
|
29685
29731
|
type FileSystemHandleKind = "directory" | "file";
|
|
29732
|
+
type FillLightMode = "auto" | "flash" | "off";
|
|
29686
29733
|
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
|
29687
29734
|
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
29688
29735
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
@@ -29775,6 +29822,7 @@ type ReadableStreamReaderMode = "byob";
|
|
|
29775
29822
|
type ReadableStreamType = "bytes";
|
|
29776
29823
|
type ReadyState = "closed" | "ended" | "open";
|
|
29777
29824
|
type RecordingState = "inactive" | "paused" | "recording";
|
|
29825
|
+
type RedEyeReduction = "always" | "controllable" | "never";
|
|
29778
29826
|
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
29827
|
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
|
|
29780
29828
|
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;
|
|
@@ -8051,7 +8076,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
8051
8076
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
|
|
8052
8077
|
requestStorageAccess(): Promise<void>;
|
|
8053
8078
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
|
|
8054
|
-
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback): ViewTransition;
|
|
8079
|
+
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition;
|
|
8055
8080
|
/**
|
|
8056
8081
|
* Writes one or more HTML expressions to a document in the specified window.
|
|
8057
8082
|
* @param content Specifies the text and HTML tags to write.
|
|
@@ -15172,6 +15197,23 @@ declare var ImageBitmapRenderingContext: {
|
|
|
15172
15197
|
new(): ImageBitmapRenderingContext;
|
|
15173
15198
|
};
|
|
15174
15199
|
|
|
15200
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture) */
|
|
15201
|
+
interface ImageCapture {
|
|
15202
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/track) */
|
|
15203
|
+
readonly track: MediaStreamTrack;
|
|
15204
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoCapabilities) */
|
|
15205
|
+
getPhotoCapabilities(): Promise<PhotoCapabilities>;
|
|
15206
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoSettings) */
|
|
15207
|
+
getPhotoSettings(): Promise<PhotoSettings>;
|
|
15208
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/takePhoto) */
|
|
15209
|
+
takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;
|
|
15210
|
+
}
|
|
15211
|
+
|
|
15212
|
+
declare var ImageCapture: {
|
|
15213
|
+
prototype: ImageCapture;
|
|
15214
|
+
new(videoTrack: MediaStreamTrack): ImageCapture;
|
|
15215
|
+
};
|
|
15216
|
+
|
|
15175
15217
|
/**
|
|
15176
15218
|
* 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
15219
|
*
|
|
@@ -16206,6 +16248,10 @@ interface MediaSession {
|
|
|
16206
16248
|
playbackState: MediaSessionPlaybackState;
|
|
16207
16249
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */
|
|
16208
16250
|
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
|
|
16251
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setCameraActive) */
|
|
16252
|
+
setCameraActive(active: boolean): Promise<void>;
|
|
16253
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setMicrophoneActive) */
|
|
16254
|
+
setMicrophoneActive(active: boolean): Promise<void>;
|
|
16209
16255
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */
|
|
16210
16256
|
setPositionState(state?: MediaPositionState): void;
|
|
16211
16257
|
}
|
|
@@ -29661,6 +29707,7 @@ type EncodedVideoChunkType = "delta" | "key";
|
|
|
29661
29707
|
type EndOfStreamError = "decode" | "network";
|
|
29662
29708
|
type EndingType = "native" | "transparent";
|
|
29663
29709
|
type FileSystemHandleKind = "directory" | "file";
|
|
29710
|
+
type FillLightMode = "auto" | "flash" | "off";
|
|
29664
29711
|
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
|
29665
29712
|
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
29666
29713
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
@@ -29753,6 +29800,7 @@ type ReadableStreamReaderMode = "byob";
|
|
|
29753
29800
|
type ReadableStreamType = "bytes";
|
|
29754
29801
|
type ReadyState = "closed" | "ended" | "open";
|
|
29755
29802
|
type RecordingState = "inactive" | "paused" | "recording";
|
|
29803
|
+
type RedEyeReduction = "always" | "controllable" | "never";
|
|
29756
29804
|
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
29805
|
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
|
|
29758
29806
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|