@@ -1333,6 +1333,10 @@ interface RTCEncodedAudioFrameMetadata {
1333
1333
synchronizationSource?: number;
1334
1334
}
1335
1335
1336
+ interface RTCEncodedAudioFrameOptions {
1337
+ metadata?: RTCEncodedAudioFrameMetadata;
1338
+ }
1339
+
1336
1340
interface RTCEncodedVideoFrameMetadata {
1337
1341
contributingSources?: number[];
1338
1342
dependencies?: number[];
@@ -1346,6 +1350,10 @@ interface RTCEncodedVideoFrameMetadata {
1346
1350
width?: number;
1347
1351
}
1348
1352
1353
+ interface RTCEncodedVideoFrameOptions {
1354
+ metadata?: RTCEncodedVideoFrameMetadata;
1355
+ }
1356
+
1349
1357
interface RTCErrorEventInit extends EventInit {
1350
1358
error: RTCError;
1351
1359
}
@@ -2079,6 +2087,8 @@ interface VideoFrameCallbackMetadata {
2079
2087
}
2080
2088
2081
2089
interface VideoFrameCopyToOptions {
2090
+ colorSpace?: PredefinedColorSpace;
2091
+ format?: VideoPixelFormat;
2082
2092
layout?: PlaneLayout[];
2083
2093
rect?: DOMRectInit;
2084
2094
}
@@ -4887,7 +4897,11 @@ interface CSSStyleDeclaration {
4887
4897
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
4888
4898
*/
4889
4899
webkitJustifyContent: string;
4890
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
4900
+ /**
4901
+ * @deprecated This is a legacy alias of `lineClamp`.
4902
+ *
4903
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp)
4904
+ */
4891
4905
webkitLineClamp: string;
4892
4906
/**
4893
4907
* @deprecated This is a legacy alias of `mask`.
@@ -5549,6 +5563,8 @@ interface CanvasShadowStyles {
5549
5563
}
5550
5564
5551
5565
interface CanvasState {
5566
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
5567
+ isContextLost(): boolean;
5552
5568
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
5553
5569
reset(): void;
5554
5570
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
@@ -7263,6 +7279,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7263
7279
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
7264
7280
createEvent(eventInterface: "StorageEvent"): StorageEvent;
7265
7281
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
7282
+ createEvent(eventInterface: "TextEvent"): TextEvent;
7266
7283
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
7267
7284
createEvent(eventInterface: "TouchEvent"): TouchEvent;
7268
7285
createEvent(eventInterface: "TrackEvent"): TrackEvent;
@@ -7699,7 +7716,7 @@ interface ElementEventMap {
7699
7716
*
7700
7717
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
7701
7718
*/
7702
- interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
7719
+ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {
7703
7720
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
7704
7721
readonly attributes: NamedNodeMap;
7705
7722
/**
@@ -7728,6 +7745,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
7728
7745
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
7729
7746
*/
7730
7747
id: string;
7748
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
7749
+ innerHTML: string;
7731
7750
/**
7732
7751
* Returns the local name.
7733
7752
*
@@ -7867,7 +7886,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
7867
7886
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
7868
7887
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
7869
7888
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
7870
- insertAdjacentHTML(position: InsertPosition, text : string): void;
7889
+ insertAdjacentHTML(position: InsertPosition, string : string): void;
7871
7890
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
7872
7891
insertAdjacentText(where: InsertPosition, data: string): void;
7873
7892
/**
@@ -8957,7 +8976,9 @@ interface GlobalEventHandlersEventMap {
8957
8976
"compositionend": CompositionEvent;
8958
8977
"compositionstart": CompositionEvent;
8959
8978
"compositionupdate": CompositionEvent;
8979
+ "contextlost": Event;
8960
8980
"contextmenu": MouseEvent;
8981
+ "contextrestored": Event;
8961
8982
"copy": ClipboardEvent;
8962
8983
"cuechange": Event;
8963
8984
"cut": ClipboardEvent;
@@ -9098,13 +9119,17 @@ interface GlobalEventHandlers {
9098
9119
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
9099
9120
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
9100
9121
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
9122
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
9123
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
9101
9124
/**
9102
9125
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
9103
9126
* @param ev The mouse event.
9104
9127
*
9105
9128
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
9106
9129
*/
9107
9130
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
9131
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
9132
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
9108
9133
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
9109
9134
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
9110
9135
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
@@ -10873,6 +10898,7 @@ interface HTMLIFrameElement extends HTMLElement {
10873
10898
name: string;
10874
10899
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
10875
10900
referrerPolicy: ReferrerPolicy;
10901
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */
10876
10902
readonly sandbox: DOMTokenList;
10877
10903
/**
10878
10904
* Sets or retrieves whether the frame can be scrolled.
@@ -11429,6 +11455,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
11429
11455
hreflang: string;
11430
11456
imageSizes: string;
11431
11457
imageSrcset: string;
11458
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
11432
11459
integrity: string;
11433
11460
/** Sets or retrieves the media type. */
11434
11461
media: string;
@@ -11454,7 +11481,11 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
11454
11481
* @deprecated
11455
11482
*/
11456
11483
target: string;
11457
- /** Sets or retrieves the MIME type of the object. */
11484
+ /**
11485
+ * Sets or retrieves the MIME type of the object.
11486
+ *
11487
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)
11488
+ */
11458
11489
type: string;
11459
11490
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11460
11491
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12478,6 +12509,7 @@ declare var HTMLQuoteElement: {
12478
12509
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
12479
12510
*/
12480
12511
interface HTMLScriptElement extends HTMLElement {
12512
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
12481
12513
async: boolean;
12482
12514
/**
12483
12515
* Sets or retrieves the character set used to encode the object.
@@ -12486,28 +12518,47 @@ interface HTMLScriptElement extends HTMLElement {
12486
12518
charset: string;
12487
12519
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
12488
12520
crossOrigin: string | null;
12489
- /** Sets or retrieves the status of the script. */
12521
+ /**
12522
+ * Sets or retrieves the status of the script.
12523
+ *
12524
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)
12525
+ */
12490
12526
defer: boolean;
12491
12527
/**
12492
12528
* Sets or retrieves the event for which the script is written.
12493
12529
* @deprecated
12494
12530
*/
12495
12531
event: string;
12532
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
12496
12533
fetchPriority: string;
12497
12534
/**
12498
12535
* Sets or retrieves the object that is bound to the event script.
12499
12536
* @deprecated
12500
12537
*/
12501
12538
htmlFor: string;
12539
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */
12502
12540
integrity: string;
12541
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */
12503
12542
noModule: boolean;
12504
12543
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
12505
12544
referrerPolicy: string;
12506
- /** Retrieves the URL to an external file that contains the source code or data. */
12545
+ /**
12546
+ * Retrieves the URL to an external file that contains the source code or data.
12547
+ *
12548
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)
12549
+ */
12507
12550
src: string;
12508
- /** Retrieves or sets the text of the object as a string. */
12551
+ /**
12552
+ * Retrieves or sets the text of the object as a string.
12553
+ *
12554
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
12555
+ */
12509
12556
text: string;
12510
- /** Sets or retrieves the MIME type for the associated scripting engine. */
12557
+ /**
12558
+ * Sets or retrieves the MIME type for the associated scripting engine.
12559
+ *
12560
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)
12561
+ */
12511
12562
type: string;
12512
12563
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
12513
12564
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -13317,6 +13368,11 @@ interface HTMLTemplateElement extends HTMLElement {
13317
13368
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
13318
13369
*/
13319
13370
readonly content: DocumentFragment;
13371
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */
13372
+ shadowRootClonable: boolean;
13373
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */
13374
+ shadowRootDelegatesFocus: boolean;
13375
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
13320
13376
shadowRootMode: string;
13321
13377
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13322
13378
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -14503,11 +14559,6 @@ declare var ImageData: {
14503
14559
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
14504
14560
};
14505
14561
14506
- interface InnerHTML {
14507
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
14508
- innerHTML: string;
14509
- }
14510
-
14511
14562
/**
14512
14563
* Available only in secure contexts.
14513
14564
*
@@ -16896,8 +16947,6 @@ declare var OffscreenCanvas: {
16896
16947
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
16897
16948
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
16898
16949
readonly canvas: OffscreenCanvas;
16899
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
16900
- commit(): void;
16901
16950
}
16902
16951
16903
16952
declare var OffscreenCanvasRenderingContext2D: {
@@ -18213,7 +18262,7 @@ interface RTCEncodedAudioFrame {
18213
18262
18214
18263
declare var RTCEncodedAudioFrame: {
18215
18264
prototype: RTCEncodedAudioFrame;
18216
- new(): RTCEncodedAudioFrame;
18265
+ new(originalFrame: RTCEncodedAudioFrame, options?: RTCEncodedAudioFrameOptions ): RTCEncodedAudioFrame;
18217
18266
};
18218
18267
18219
18268
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
@@ -18230,7 +18279,7 @@ interface RTCEncodedVideoFrame {
18230
18279
18231
18280
declare var RTCEncodedVideoFrame: {
18232
18281
prototype: RTCEncodedVideoFrame;
18233
- new(): RTCEncodedVideoFrame;
18282
+ new(originalFrame: RTCEncodedVideoFrame, options?: RTCEncodedVideoFrameOptions ): RTCEncodedVideoFrame;
18234
18283
};
18235
18284
18236
18285
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */
@@ -18497,6 +18546,7 @@ declare var RTCPeerConnectionIceEvent: {
18497
18546
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
18498
18547
*/
18499
18548
interface RTCRtpReceiver {
18549
+ jitterBufferTarget: DOMHighResTimeStamp | null;
18500
18550
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
18501
18551
readonly track: MediaStreamTrack;
18502
18552
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
@@ -18575,7 +18625,7 @@ interface RTCRtpTransceiver {
18575
18625
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
18576
18626
readonly sender: RTCRtpSender;
18577
18627
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
18578
- setCodecPreferences(codecs: RTCRtpCodecCapability []): void;
18628
+ setCodecPreferences(codecs: RTCRtpCodec []): void;
18579
18629
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
18580
18630
stop(): void;
18581
18631
}
@@ -18695,7 +18745,7 @@ interface Range extends AbstractRange {
18695
18745
*/
18696
18746
comparePoint(node: Node, offset: number): number;
18697
18747
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
18698
- createContextualFragment(fragment : string): DocumentFragment;
18748
+ createContextualFragment(string : string): DocumentFragment;
18699
18749
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
18700
18750
deleteContents(): void;
18701
18751
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
@@ -21369,6 +21419,7 @@ interface Selection {
21369
21419
readonly anchorNode: Node | null;
21370
21420
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
21371
21421
readonly anchorOffset: number;
21422
+ readonly direction: string;
21372
21423
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
21373
21424
readonly focusNode: Node | null;
21374
21425
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
@@ -21541,13 +21592,15 @@ interface ShadowRootEventMap {
21541
21592
}
21542
21593
21543
21594
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
21544
- interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
21595
+ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
21545
21596
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
21546
21597
readonly clonable: boolean;
21547
21598
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
21548
21599
readonly delegatesFocus: boolean;
21549
21600
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
21550
21601
readonly host: Element;
21602
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */
21603
+ innerHTML: string;
21551
21604
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
21552
21605
readonly mode: ShadowRootMode;
21553
21606
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
@@ -22294,6 +22347,16 @@ declare var TextEncoderStream: {
22294
22347
new(): TextEncoderStream;
22295
22348
};
22296
22349
22350
+ interface TextEvent extends UIEvent {
22351
+ readonly data: string;
22352
+ initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;
22353
+ }
22354
+
22355
+ declare var TextEvent: {
22356
+ prototype: TextEvent;
22357
+ new(): TextEvent;
22358
+ };
22359
+
22297
22360
/**
22298
22361
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
22299
22362
*
@@ -27855,13 +27918,17 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
27855
27918
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
27856
27919
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
27857
27920
declare var onclose: ((this: Window, ev: Event) => any) | null;
27921
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
27922
+ declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
27858
27923
/**
27859
27924
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
27860
27925
* @param ev The mouse event.
27861
27926
*
27862
27927
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
27863
27928
*/
27864
27929
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
27930
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
27931
+ declare var oncontextrestored: ((this: Window, ev: Event) => any) | null;
27865
27932
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
27866
27933
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
27867
27934
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
0 commit comments