@types/web 0.0.149 → 0.0.150
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 +75 -12
- 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.150 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.150.
|
package/index.d.ts
CHANGED
|
@@ -580,6 +580,11 @@ interface GetAnimationsOptions {
|
|
|
580
580
|
subtree?: boolean;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
+
interface GetHTMLOptions {
|
|
584
|
+
serializableShadowRoots?: boolean;
|
|
585
|
+
shadowRoots?: ShadowRoot[];
|
|
586
|
+
}
|
|
587
|
+
|
|
583
588
|
interface GetNotificationOptions {
|
|
584
589
|
tag?: string;
|
|
585
590
|
}
|
|
@@ -842,6 +847,10 @@ interface MediaKeySystemMediaCapability {
|
|
|
842
847
|
robustness?: string;
|
|
843
848
|
}
|
|
844
849
|
|
|
850
|
+
interface MediaKeysPolicy {
|
|
851
|
+
minHdcpVersion?: string;
|
|
852
|
+
}
|
|
853
|
+
|
|
845
854
|
interface MediaMetadataInit {
|
|
846
855
|
album?: string;
|
|
847
856
|
artist?: string;
|
|
@@ -1181,6 +1190,10 @@ interface PointerEventInit extends MouseEventInit {
|
|
|
1181
1190
|
width?: number;
|
|
1182
1191
|
}
|
|
1183
1192
|
|
|
1193
|
+
interface PointerLockOptions {
|
|
1194
|
+
unadjustedMovement?: boolean;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1184
1197
|
interface PopStateEventInit extends EventInit {
|
|
1185
1198
|
state?: any;
|
|
1186
1199
|
}
|
|
@@ -1364,11 +1377,6 @@ interface RTCIceCandidateInit {
|
|
|
1364
1377
|
usernameFragment?: string | null;
|
|
1365
1378
|
}
|
|
1366
1379
|
|
|
1367
|
-
interface RTCIceCandidatePair {
|
|
1368
|
-
local: RTCIceCandidate;
|
|
1369
|
-
remote: RTCIceCandidate;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
1380
|
interface RTCIceCandidatePairStats extends RTCStats {
|
|
1373
1381
|
availableIncomingBitrate?: number;
|
|
1374
1382
|
availableOutgoingBitrate?: number;
|
|
@@ -1500,7 +1508,7 @@ interface RTCRtcpParameters {
|
|
|
1500
1508
|
}
|
|
1501
1509
|
|
|
1502
1510
|
interface RTCRtpCapabilities {
|
|
1503
|
-
codecs:
|
|
1511
|
+
codecs: RTCRtpCodec[];
|
|
1504
1512
|
headerExtensions: RTCRtpHeaderExtensionCapability[];
|
|
1505
1513
|
}
|
|
1506
1514
|
|
|
@@ -1511,9 +1519,6 @@ interface RTCRtpCodec {
|
|
|
1511
1519
|
sdpFmtpLine?: string;
|
|
1512
1520
|
}
|
|
1513
1521
|
|
|
1514
|
-
interface RTCRtpCodecCapability extends RTCRtpCodec {
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
1522
|
interface RTCRtpCodecParameters extends RTCRtpCodec {
|
|
1518
1523
|
payloadType: number;
|
|
1519
1524
|
}
|
|
@@ -4655,6 +4660,8 @@ interface CSSStyleDeclaration {
|
|
|
4655
4660
|
vectorEffect: string;
|
|
4656
4661
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
|
|
4657
4662
|
verticalAlign: string;
|
|
4663
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
|
|
4664
|
+
viewTransitionName: string;
|
|
4658
4665
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
|
|
4659
4666
|
visibility: string;
|
|
4660
4667
|
/**
|
|
@@ -7463,6 +7470,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7463
7470
|
releaseEvents(): void;
|
|
7464
7471
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
|
|
7465
7472
|
requestStorageAccess(): Promise<void>;
|
|
7473
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
|
|
7474
|
+
startViewTransition(callbackOptions?: UpdateCallback): ViewTransition;
|
|
7466
7475
|
/**
|
|
7467
7476
|
* Writes one or more HTML expressions to a document in the specified window.
|
|
7468
7477
|
* @param content Specifies the text and HTML tags to write.
|
|
@@ -7854,6 +7863,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
7854
7863
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
7855
7864
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
7856
7865
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
7866
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
7857
7867
|
/**
|
|
7858
7868
|
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
|
|
7859
7869
|
*
|
|
@@ -7911,7 +7921,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
7911
7921
|
*/
|
|
7912
7922
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
7913
7923
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */
|
|
7914
|
-
requestPointerLock(): void
|
|
7924
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
7915
7925
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */
|
|
7916
7926
|
scroll(options?: ScrollToOptions): void;
|
|
7917
7927
|
scroll(x: number, y: number): void;
|
|
@@ -8906,6 +8916,7 @@ interface GeolocationCoordinates {
|
|
|
8906
8916
|
readonly longitude: number;
|
|
8907
8917
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */
|
|
8908
8918
|
readonly speed: number | null;
|
|
8919
|
+
toJSON(): any;
|
|
8909
8920
|
}
|
|
8910
8921
|
|
|
8911
8922
|
declare var GeolocationCoordinates: {
|
|
@@ -8923,6 +8934,7 @@ interface GeolocationPosition {
|
|
|
8923
8934
|
readonly coords: GeolocationCoordinates;
|
|
8924
8935
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */
|
|
8925
8936
|
readonly timestamp: EpochTimeStamp;
|
|
8937
|
+
toJSON(): any;
|
|
8926
8938
|
}
|
|
8927
8939
|
|
|
8928
8940
|
declare var GeolocationPosition: {
|
|
@@ -10179,6 +10191,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
|
|
10179
10191
|
accessKey: string;
|
|
10180
10192
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
|
|
10181
10193
|
readonly accessKeyLabel: string;
|
|
10194
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) */
|
|
10182
10195
|
autocapitalize: string;
|
|
10183
10196
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
|
|
10184
10197
|
dir: string;
|
|
@@ -10252,7 +10265,11 @@ interface HTMLEmbedElement extends HTMLElement {
|
|
|
10252
10265
|
* @deprecated
|
|
10253
10266
|
*/
|
|
10254
10267
|
name: string;
|
|
10255
|
-
/**
|
|
10268
|
+
/**
|
|
10269
|
+
* Sets or retrieves a URL to be loaded by the object.
|
|
10270
|
+
*
|
|
10271
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src)
|
|
10272
|
+
*/
|
|
10256
10273
|
src: string;
|
|
10257
10274
|
type: string;
|
|
10258
10275
|
/**
|
|
@@ -13372,6 +13389,8 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
13372
13389
|
shadowRootDelegatesFocus: boolean;
|
|
13373
13390
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
|
|
13374
13391
|
shadowRootMode: string;
|
|
13392
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */
|
|
13393
|
+
shadowRootSerializable: boolean;
|
|
13375
13394
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13376
13395
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
13377
13396
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -15328,6 +15347,7 @@ declare var MediaKeySystemAccess: {
|
|
|
15328
15347
|
interface MediaKeys {
|
|
15329
15348
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */
|
|
15330
15349
|
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
|
|
15350
|
+
getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
|
|
15331
15351
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */
|
|
15332
15352
|
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
|
|
15333
15353
|
}
|
|
@@ -15545,10 +15565,21 @@ interface MediaSource extends EventTarget {
|
|
|
15545
15565
|
declare var MediaSource: {
|
|
15546
15566
|
prototype: MediaSource;
|
|
15547
15567
|
new(): MediaSource;
|
|
15568
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static) */
|
|
15569
|
+
readonly canConstructInDedicatedWorker: boolean;
|
|
15548
15570
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
|
|
15549
15571
|
isTypeSupported(type: string): boolean;
|
|
15550
15572
|
};
|
|
15551
15573
|
|
|
15574
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */
|
|
15575
|
+
interface MediaSourceHandle {
|
|
15576
|
+
}
|
|
15577
|
+
|
|
15578
|
+
declare var MediaSourceHandle: {
|
|
15579
|
+
prototype: MediaSourceHandle;
|
|
15580
|
+
new(): MediaSourceHandle;
|
|
15581
|
+
};
|
|
15582
|
+
|
|
15552
15583
|
interface MediaStreamEventMap {
|
|
15553
15584
|
"addtrack": MediaStreamTrackEvent;
|
|
15554
15585
|
"removetrack": MediaStreamTrackEvent;
|
|
@@ -17941,6 +17972,7 @@ declare var PointerEvent: {
|
|
|
17941
17972
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
|
|
17942
17973
|
*/
|
|
17943
17974
|
interface PopStateEvent extends Event {
|
|
17975
|
+
readonly hasUAVisualTransition: boolean;
|
|
17944
17976
|
/**
|
|
17945
17977
|
* Returns a copy of the information that was provided to pushState() or replaceState().
|
|
17946
17978
|
*
|
|
@@ -18358,6 +18390,11 @@ declare var RTCIceCandidate: {
|
|
|
18358
18390
|
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
|
|
18359
18391
|
};
|
|
18360
18392
|
|
|
18393
|
+
interface RTCIceCandidatePair {
|
|
18394
|
+
local: RTCIceCandidate;
|
|
18395
|
+
remote: RTCIceCandidate;
|
|
18396
|
+
}
|
|
18397
|
+
|
|
18361
18398
|
interface RTCIceTransportEventMap {
|
|
18362
18399
|
"gatheringstatechange": Event;
|
|
18363
18400
|
"selectedcandidatepairchange": Event;
|
|
@@ -21607,8 +21644,10 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
21607
21644
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
|
|
21608
21645
|
readonly mode: ShadowRootMode;
|
|
21609
21646
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
21647
|
+
readonly serializable: boolean;
|
|
21610
21648
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
|
|
21611
21649
|
readonly slotAssignment: SlotAssignmentMode;
|
|
21650
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
21612
21651
|
setHTMLUnsafe(html: string): void;
|
|
21613
21652
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
|
21614
21653
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -22956,6 +22995,8 @@ declare var URL: {
|
|
|
22956
22995
|
canParse(url: string | URL, base?: string): boolean;
|
|
22957
22996
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
|
22958
22997
|
createObjectURL(obj: Blob | MediaSource): string;
|
|
22998
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
|
|
22999
|
+
parse(url: string | URL, base?: string): URL | null;
|
|
22959
23000
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
|
|
22960
23001
|
revokeObjectURL(url: string): void;
|
|
22961
23002
|
};
|
|
@@ -23277,6 +23318,23 @@ declare var VideoPlaybackQuality: {
|
|
|
23277
23318
|
new(): VideoPlaybackQuality;
|
|
23278
23319
|
};
|
|
23279
23320
|
|
|
23321
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition) */
|
|
23322
|
+
interface ViewTransition {
|
|
23323
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */
|
|
23324
|
+
readonly finished: Promise<undefined>;
|
|
23325
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
|
|
23326
|
+
readonly ready: Promise<undefined>;
|
|
23327
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
|
|
23328
|
+
readonly updateCallbackDone: Promise<undefined>;
|
|
23329
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
|
|
23330
|
+
skipTransition(): void;
|
|
23331
|
+
}
|
|
23332
|
+
|
|
23333
|
+
declare var ViewTransition: {
|
|
23334
|
+
prototype: ViewTransition;
|
|
23335
|
+
new(): ViewTransition;
|
|
23336
|
+
};
|
|
23337
|
+
|
|
23280
23338
|
interface VisualViewportEventMap {
|
|
23281
23339
|
"resize": Event;
|
|
23282
23340
|
"scroll": Event;
|
|
@@ -25025,6 +25083,7 @@ declare var WebGLRenderingContext: {
|
|
|
25025
25083
|
interface WebGLRenderingContextBase {
|
|
25026
25084
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
|
|
25027
25085
|
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
25086
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */
|
|
25028
25087
|
drawingBufferColorSpace: PredefinedColorSpace;
|
|
25029
25088
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
|
|
25030
25089
|
readonly drawingBufferHeight: GLsizei;
|
|
@@ -27318,6 +27377,10 @@ interface UnderlyingSourceStartCallback<R> {
|
|
|
27318
27377
|
(controller: ReadableStreamController<R>): any;
|
|
27319
27378
|
}
|
|
27320
27379
|
|
|
27380
|
+
interface UpdateCallback {
|
|
27381
|
+
(): any;
|
|
27382
|
+
}
|
|
27383
|
+
|
|
27321
27384
|
interface VideoFrameOutputCallback {
|
|
27322
27385
|
(output: VideoFrame): void;
|
|
27323
27386
|
}
|
|
@@ -28460,7 +28523,7 @@ type ReportList = Report[];
|
|
|
28460
28523
|
type RequestInfo = Request | string;
|
|
28461
28524
|
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
|
|
28462
28525
|
type TimerHandler = string | Function;
|
|
28463
|
-
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
|
|
28526
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
|
|
28464
28527
|
type Uint32List = Uint32Array | GLuint[];
|
|
28465
28528
|
type VibratePattern = number | number[];
|
|
28466
28529
|
type WindowProxy = Window;
|