@types/web 0.0.246 → 0.0.247

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/index.d.ts CHANGED
@@ -379,6 +379,11 @@ interface ConstantSourceOptions {
379
379
  offset?: number;
380
380
  }
381
381
 
382
+ interface ConstrainBooleanOrDOMStringParameters {
383
+ exact?: boolean | string;
384
+ ideal?: boolean | string;
385
+ }
386
+
382
387
  interface ConstrainBooleanParameters {
383
388
  exact?: boolean;
384
389
  ideal?: boolean;
@@ -1116,7 +1121,7 @@ interface MediaTrackCapabilities {
1116
1121
  channelCount?: ULongRange;
1117
1122
  deviceId?: string;
1118
1123
  displaySurface?: string;
1119
- echoCancellation?: boolean[];
1124
+ echoCancellation?: (boolean | string)[];
1120
1125
  facingMode?: string[];
1121
1126
  frameRate?: DoubleRange;
1122
1127
  groupId?: string;
@@ -1134,7 +1139,7 @@ interface MediaTrackConstraintSet {
1134
1139
  channelCount?: ConstrainULong;
1135
1140
  deviceId?: ConstrainDOMString;
1136
1141
  displaySurface?: ConstrainDOMString;
1137
- echoCancellation?: ConstrainBoolean;
1142
+ echoCancellation?: ConstrainBooleanOrDOMString;
1138
1143
  facingMode?: ConstrainDOMString;
1139
1144
  frameRate?: ConstrainDouble;
1140
1145
  groupId?: ConstrainDOMString;
@@ -1156,7 +1161,7 @@ interface MediaTrackSettings {
1156
1161
  channelCount?: number;
1157
1162
  deviceId?: string;
1158
1163
  displaySurface?: string;
1159
- echoCancellation?: boolean;
1164
+ echoCancellation?: boolean | string;
1160
1165
  facingMode?: string;
1161
1166
  frameRate?: number;
1162
1167
  groupId?: string;
@@ -2016,6 +2021,15 @@ interface RegistrationOptions {
2016
2021
  updateViaCache?: ServiceWorkerUpdateViaCache;
2017
2022
  }
2018
2023
 
2024
+ interface Report {
2025
+ body?: ReportBody | null;
2026
+ type?: string;
2027
+ url?: string;
2028
+ }
2029
+
2030
+ interface ReportBody {
2031
+ }
2032
+
2019
2033
  interface ReportingObserverOptions {
2020
2034
  buffered?: boolean;
2021
2035
  types?: string[];
@@ -2113,6 +2127,11 @@ interface ScrollOptions {
2113
2127
  behavior?: ScrollBehavior;
2114
2128
  }
2115
2129
 
2130
+ interface ScrollTimelineOptions {
2131
+ axis?: ScrollAxis;
2132
+ source?: Element | null;
2133
+ }
2134
+
2116
2135
  interface ScrollToOptions extends ScrollOptions {
2117
2136
  left?: number;
2118
2137
  top?: number;
@@ -2135,7 +2154,7 @@ interface SecurityPolicyViolationEventInit extends EventInit {
2135
2154
 
2136
2155
  interface ShadowRootInit {
2137
2156
  clonable?: boolean;
2138
- customElementRegistry?: CustomElementRegistry;
2157
+ customElementRegistry?: CustomElementRegistry | null;
2139
2158
  delegatesFocus?: boolean;
2140
2159
  mode: ShadowRootMode;
2141
2160
  serializable?: boolean;
@@ -2149,6 +2168,16 @@ interface ShareData {
2149
2168
  url?: string;
2150
2169
  }
2151
2170
 
2171
+ interface SpeechRecognitionErrorEventInit extends EventInit {
2172
+ error: SpeechRecognitionErrorCode;
2173
+ message?: string;
2174
+ }
2175
+
2176
+ interface SpeechRecognitionEventInit extends EventInit {
2177
+ resultIndex?: number;
2178
+ results: SpeechRecognitionResultList;
2179
+ }
2180
+
2152
2181
  interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
2153
2182
  error: SpeechSynthesisErrorCode;
2154
2183
  }
@@ -2492,6 +2521,12 @@ interface VideoFrameInit {
2492
2521
  visibleRect?: DOMRectInit;
2493
2522
  }
2494
2523
 
2524
+ interface ViewTimelineOptions {
2525
+ axis?: ScrollAxis;
2526
+ inset?: string | (CSSNumericValue | CSSKeywordValue)[];
2527
+ subject?: Element;
2528
+ }
2529
+
2495
2530
  interface WaveShaperOptions extends AudioNodeOptions {
2496
2531
  curve?: number[] | Float32Array;
2497
2532
  oversample?: OverSampleType;
@@ -4579,91 +4614,6 @@ declare var CDATASection: {
4579
4614
  new(): CDATASection;
4580
4615
  };
4581
4616
 
4582
- /**
4583
- * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.
4584
- *
4585
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)
4586
- */
4587
- interface CSPViolationReportBody extends ReportBody {
4588
- /**
4589
- * The **`blockedURL`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP).
4590
- *
4591
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL)
4592
- */
4593
- readonly blockedURL: string | null;
4594
- /**
4595
- * The **`columnNumber`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation.
4596
- *
4597
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber)
4598
- */
4599
- readonly columnNumber: number | null;
4600
- /**
4601
- * The **`disposition`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them.
4602
- *
4603
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition)
4604
- */
4605
- readonly disposition: SecurityPolicyViolationEventDisposition;
4606
- /**
4607
- * The **`documentURL`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP).
4608
- *
4609
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL)
4610
- */
4611
- readonly documentURL: string;
4612
- /**
4613
- * The **`effectiveDirective`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated.
4614
- *
4615
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective)
4616
- */
4617
- readonly effectiveDirective: string;
4618
- /**
4619
- * The **`lineNumber`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation.
4620
- *
4621
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber)
4622
- */
4623
- readonly lineNumber: number | null;
4624
- /**
4625
- * The **`originalPolicy`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation.
4626
- *
4627
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy)
4628
- */
4629
- readonly originalPolicy: string;
4630
- /**
4631
- * The **`referrer`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated.
4632
- *
4633
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer)
4634
- */
4635
- readonly referrer: string | null;
4636
- /**
4637
- * The **`sample`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP).
4638
- *
4639
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample)
4640
- */
4641
- readonly sample: string | null;
4642
- /**
4643
- * The **`sourceFile`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP).
4644
- *
4645
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile)
4646
- */
4647
- readonly sourceFile: string | null;
4648
- /**
4649
- * The **`statusCode`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker).
4650
- *
4651
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode)
4652
- */
4653
- readonly statusCode: number;
4654
- /**
4655
- * The **`toJSON()`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the `CSPViolationReportBody` object.
4656
- *
4657
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON)
4658
- */
4659
- toJSON(): any;
4660
- }
4661
-
4662
- declare var CSPViolationReportBody: {
4663
- prototype: CSPViolationReportBody;
4664
- new(): CSPViolationReportBody;
4665
- };
4666
-
4667
4617
  /**
4668
4618
  * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object.
4669
4619
  *
@@ -4905,7 +4855,7 @@ interface CSSGroupingRule extends CSSRule {
4905
4855
  */
4906
4856
  deleteRule(index: number): void;
4907
4857
  /**
4908
- * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0.
4858
+ * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0.
4909
4859
  *
4910
4860
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule)
4911
4861
  */
@@ -6424,6 +6374,8 @@ interface CSSStyleProperties extends CSSStyleDeclaration {
6424
6374
  fontVariantCaps: string;
6425
6375
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */
6426
6376
  fontVariantEastAsian: string;
6377
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-emoji) */
6378
+ fontVariantEmoji: string;
6427
6379
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */
6428
6380
  fontVariantLigatures: string;
6429
6381
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */
@@ -8813,7 +8765,7 @@ declare var CustomElementRegistry: {
8813
8765
  };
8814
8766
 
8815
8767
  /**
8816
- * The **`CustomEvent`** interface represents events initialized by an application for any purpose.
8768
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
8817
8769
  *
8818
8770
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
8819
8771
  */
@@ -8947,7 +8899,7 @@ interface DOMImplementation {
8947
8899
  */
8948
8900
  createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
8949
8901
  /**
8950
- * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) ``` - `qualifiedNameStr` - : A string containing the qualified name, like `svg:svg`.
8902
+ * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(name, publicId, systemId) ``` - `name` - : A string containing the name of the doctype, like `html`.
8951
8903
  *
8952
8904
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType)
8953
8905
  */
@@ -10481,6 +10433,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10481
10433
  createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
10482
10434
  createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
10483
10435
  createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
10436
+ createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
10437
+ createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
10484
10438
  createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
10485
10439
  createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
10486
10440
  createEvent(eventInterface: "StorageEvent"): StorageEvent;
@@ -13761,7 +13715,12 @@ interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
13761
13715
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)
13762
13716
  */
13763
13717
  interface HTMLDListElement extends HTMLElement {
13764
- /** @deprecated */
13718
+ /**
13719
+ * The **`compact`** property of the HTMLDListElement interface indicates that spacing between list items should be reduced.
13720
+ * @deprecated
13721
+ *
13722
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact)
13723
+ */
13765
13724
  compact: boolean;
13766
13725
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13767
13726
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -13855,6 +13814,12 @@ declare var HTMLDetailsElement: {
13855
13814
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement)
13856
13815
  */
13857
13816
  interface HTMLDialogElement extends HTMLElement {
13817
+ /**
13818
+ * The **`closedBy`** property of the A string; possible values are: - `any` - : The dialog can be dismissed with a light dismiss user action, a platform-specific user action, or a developer-specified mechanism.
13819
+ *
13820
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/closedBy)
13821
+ */
13822
+ closedBy: string;
13858
13823
  /**
13859
13824
  * The **`open`** property of the `open` HTML attribute, indicating whether the dialog is available for interaction.
13860
13825
  *
@@ -15107,7 +15072,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
15107
15072
  */
15108
15073
  max: string;
15109
15074
  /**
15110
- * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid.
15075
+ * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid.
15111
15076
  *
15112
15077
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
15113
15078
  */
@@ -15119,7 +15084,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
15119
15084
  */
15120
15085
  min: string;
15121
15086
  /**
15122
- * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the input element to be valid.
15087
+ * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16) required for the value of the input element to be valid.
15123
15088
  *
15124
15089
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength)
15125
15090
  */
@@ -15241,7 +15206,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
15241
15206
  */
15242
15207
  readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
15243
15208
  /**
15244
- * The **`HTMLInputElement.webkitdirectory`** is a property that reflects the `webkitdirectory` HTML attribute and indicates that the input element should let the user select directories instead of files.
15209
+ * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `<input type='file'>` elements should let the user select directories instead of files.
15245
15210
  *
15246
15211
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
15247
15212
  */
@@ -15887,7 +15852,12 @@ declare var HTMLMediaElement: {
15887
15852
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement)
15888
15853
  */
15889
15854
  interface HTMLMenuElement extends HTMLElement {
15890
- /** @deprecated */
15855
+ /**
15856
+ * The **`compact`** property of the HTMLMenuElement interface indicates that spacing between list items should be reduced.
15857
+ * @deprecated
15858
+ *
15859
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact)
15860
+ */
15891
15861
  compact: boolean;
15892
15862
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15893
15863
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -16042,7 +16012,12 @@ declare var HTMLModElement: {
16042
16012
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)
16043
16013
  */
16044
16014
  interface HTMLOListElement extends HTMLElement {
16045
- /** @deprecated */
16015
+ /**
16016
+ * The **`compact`** property of the HTMLOListElement interface indicates that spacing between list items should be reduced.
16017
+ * @deprecated
16018
+ *
16019
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact)
16020
+ */
16046
16021
  compact: boolean;
16047
16022
  /**
16048
16023
  * The **`reversed`** property of the HTMLOListElement interface indicates order of a list.
@@ -17619,13 +17594,13 @@ interface HTMLTextAreaElement extends HTMLElement {
17619
17594
  */
17620
17595
  readonly labels: NodeListOf<HTMLLabelElement>;
17621
17596
  /**
17622
- * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid.
17597
+ * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid.
17623
17598
  *
17624
17599
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength)
17625
17600
  */
17626
17601
  maxLength: number;
17627
17602
  /**
17628
- * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the textarea element to be valid.
17603
+ * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16) required for the value of the textarea element to be valid.
17629
17604
  *
17630
17605
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength)
17631
17606
  */
@@ -17679,7 +17654,7 @@ interface HTMLTextAreaElement extends HTMLElement {
17679
17654
  */
17680
17655
  selectionStart: number;
17681
17656
  /**
17682
- * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the textarea element's value.
17657
+ * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16, of the textarea element's value.
17683
17658
  *
17684
17659
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength)
17685
17660
  */
@@ -17887,7 +17862,12 @@ declare var HTMLTrackElement: {
17887
17862
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
17888
17863
  */
17889
17864
  interface HTMLUListElement extends HTMLElement {
17890
- /** @deprecated */
17865
+ /**
17866
+ * The **`compact`** property of the HTMLUListElement interface indicates that spacing between list items should be reduced.
17867
+ * @deprecated
17868
+ *
17869
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact)
17870
+ */
17891
17871
  compact: boolean;
17892
17872
  /** @deprecated */
17893
17873
  type: string;
@@ -19240,44 +19220,49 @@ declare var InputEvent: {
19240
19220
  */
19241
19221
  interface IntersectionObserver {
19242
19222
  /**
19243
- * The IntersectionObserver interface's read-only **`root`** property identifies the Element or of the viewport for the element which is the observer's target.
19223
+ * The **`root`** read-only property of the IntersectionObserver interface identifies the Element or Document whose bounds are treated as the bounding box of the viewport for the element which is the observer's target.
19244
19224
  *
19245
19225
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root)
19246
19226
  */
19247
19227
  readonly root: Element | Document | null;
19248
19228
  /**
19249
- * The IntersectionObserver interface's read-only **`rootMargin`** property is a string with syntax similar to that of the CSS margin property.
19229
+ * The **`rootMargin`** read-only property of the IntersectionObserver interface is a string with syntax similar to that of the CSS margin property.
19250
19230
  *
19251
19231
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin)
19252
19232
  */
19253
19233
  readonly rootMargin: string;
19234
+ /**
19235
+ * The **`scrollMargin`** read-only property of the IntersectionObserver interface adds a margin to all nested scroll container within the root element, including the root element if it is a scroll container.
19236
+ *
19237
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/scrollMargin)
19238
+ */
19254
19239
  readonly scrollMargin: string;
19255
19240
  /**
19256
- * The IntersectionObserver interface's read-only **`thresholds`** property returns the list of intersection thresholds that was specified when the observer was instantiated with only one threshold ratio was provided when instantiating the object, this will be an array containing that single value.
19241
+ * The **`thresholds`** read-only property of the IntersectionObserver interface returns the list of intersection thresholds that was specified when the observer was instantiated with IntersectionObserver.IntersectionObserver.
19257
19242
  *
19258
19243
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds)
19259
19244
  */
19260
19245
  readonly thresholds: ReadonlyArray<number>;
19261
19246
  /**
19262
- * The IntersectionObserver method **`disconnect()`** stops watching all of its target elements for visibility changes.
19247
+ * The **`disconnect()`** method of the IntersectionObserver interface stops the observer watching all of its target elements for visibility changes.
19263
19248
  *
19264
19249
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect)
19265
19250
  */
19266
19251
  disconnect(): void;
19267
19252
  /**
19268
- * The IntersectionObserver method **`observe()`** adds an element to the set of target elements being watched by the `IntersectionObserver`.
19253
+ * The **`observe()`** method of the IntersectionObserver interface adds an element to the set of target elements being watched by the `IntersectionObserver`.
19269
19254
  *
19270
19255
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe)
19271
19256
  */
19272
19257
  observe(target: Element): void;
19273
19258
  /**
19274
- * The IntersectionObserver method **`takeRecords()`** returns an array of has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback.
19259
+ * The **`takeRecords()`** method of the IntersectionObserver interface returns an array of IntersectionObserverEntry objects, one for each targeted element which has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback.
19275
19260
  *
19276
19261
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords)
19277
19262
  */
19278
19263
  takeRecords(): IntersectionObserverEntry[];
19279
19264
  /**
19280
- * The IntersectionObserver method **`unobserve()`** instructs the `IntersectionObserver` to stop observing the specified target element.
19265
+ * The **`unobserve()`** method of the IntersectionObserver interface instructs the `IntersectionObserver` to stop observing the specified target element.
19281
19266
  *
19282
19267
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve)
19283
19268
  */
@@ -19296,43 +19281,43 @@ declare var IntersectionObserver: {
19296
19281
  */
19297
19282
  interface IntersectionObserverEntry {
19298
19283
  /**
19299
- * The IntersectionObserverEntry interface's read-only **`boundingClientRect`** property returns a smallest rectangle that contains the entire target element.
19284
+ * The **`boundingClientRect`** read-only property of the IntersectionObserverEntry interface returns a DOMRectReadOnly which in essence describes a rectangle describing the smallest rectangle that contains the entire target element.
19300
19285
  *
19301
19286
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect)
19302
19287
  */
19303
19288
  readonly boundingClientRect: DOMRectReadOnly;
19304
19289
  /**
19305
- * The IntersectionObserverEntry interface's read-only **`intersectionRatio`** property tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0.
19290
+ * The **`intersectionRatio`** read-only property of the IntersectionObserverEntry interface tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0.
19306
19291
  *
19307
19292
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio)
19308
19293
  */
19309
19294
  readonly intersectionRatio: number;
19310
19295
  /**
19311
- * The IntersectionObserverEntry interface's read-only **`intersectionRect`** property is a contains the entire portion of the target element which is currently visible within the intersection root.
19296
+ * The **`intersectionRect`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly object which describes the smallest rectangle that contains the entire portion of the target element which is currently visible within the intersection root.
19312
19297
  *
19313
19298
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect)
19314
19299
  */
19315
19300
  readonly intersectionRect: DOMRectReadOnly;
19316
19301
  /**
19317
- * The IntersectionObserverEntry interface's read-only **`isIntersecting`** property is a Boolean value which is `true` if the target element intersects with the intersection observer's root.
19302
+ * The **`isIntersecting`** read-only property of the IntersectionObserverEntry interface is a Boolean value which is `true` if the target element intersects with the intersection observer's root.
19318
19303
  *
19319
19304
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting)
19320
19305
  */
19321
19306
  readonly isIntersecting: boolean;
19322
19307
  /**
19323
- * The IntersectionObserverEntry interface's read-only **`rootBounds`** property is a rectangle, offset by the IntersectionObserver.rootMargin if one is specified.
19308
+ * The **`rootBounds`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly corresponding to the IntersectionObserverEntry.target's root intersection rectangle, offset by the IntersectionObserver.rootMargin if one is specified.
19324
19309
  *
19325
19310
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds)
19326
19311
  */
19327
19312
  readonly rootBounds: DOMRectReadOnly | null;
19328
19313
  /**
19329
- * The IntersectionObserverEntry interface's read-only **`target`** property indicates which targeted root.
19314
+ * The **`target`** read-only property of the IntersectionObserverEntry interface indicates which targeted Element has changed its amount of intersection with the intersection root.
19330
19315
  *
19331
19316
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target)
19332
19317
  */
19333
19318
  readonly target: Element;
19334
19319
  /**
19335
- * The IntersectionObserverEntry interface's read-only **`time`** property is a change occurred relative to the time at which the document was created.
19320
+ * The **`time`** read-only property of the IntersectionObserverEntry interface is a DOMHighResTimeStamp that indicates the time at which the intersection change occurred relative to the time at which the document was created.
19336
19321
  *
19337
19322
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time)
19338
19323
  */
@@ -23666,13 +23651,13 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming {
23666
23651
  */
23667
23652
  readonly type: NavigationTimingType;
23668
23653
  /**
23669
- * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's `unload` event handler completes.
23654
+ * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the previous document's `unload` event handler completes.
23670
23655
  *
23671
23656
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)
23672
23657
  */
23673
23658
  readonly unloadEventEnd: DOMHighResTimeStamp;
23674
23659
  /**
23675
- * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's `unload` event handler starts.
23660
+ * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the previous document's `unload` event handler starts.
23676
23661
  *
23677
23662
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)
23678
23663
  */
@@ -24328,6 +24313,12 @@ interface PointerEvent extends MouseEvent {
24328
24313
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary)
24329
24314
  */
24330
24315
  readonly isPrimary: boolean;
24316
+ /**
24317
+ * The **`persistentDeviceId`** read-only property of the PointerEvent interface is a unique identifier for the pointing device generating the `PointerEvent`.
24318
+ *
24319
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/persistentDeviceId)
24320
+ */
24321
+ readonly persistentDeviceId: number;
24331
24322
  /**
24332
24323
  * The **`pointerId`** read-only property of the event.
24333
24324
  *
@@ -26309,57 +26300,6 @@ declare var RemotePlayback: {
26309
26300
  new(): RemotePlayback;
26310
26301
  };
26311
26302
 
26312
- /**
26313
- * The `Report` interface of the Reporting API represents a single report.
26314
- *
26315
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
26316
- */
26317
- interface Report {
26318
- /**
26319
- * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information.
26320
- *
26321
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
26322
- */
26323
- readonly body: ReportBody | null;
26324
- /**
26325
- * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
26326
- *
26327
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
26328
- */
26329
- readonly type: string;
26330
- /**
26331
- * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
26332
- *
26333
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
26334
- */
26335
- readonly url: string;
26336
- toJSON(): any;
26337
- }
26338
-
26339
- declare var Report: {
26340
- prototype: Report;
26341
- new(): Report;
26342
- };
26343
-
26344
- /**
26345
- * The **`ReportBody`** interface of the Reporting API represents the body of a report.
26346
- *
26347
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
26348
- */
26349
- interface ReportBody {
26350
- /**
26351
- * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
26352
- *
26353
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
26354
- */
26355
- toJSON(): any;
26356
- }
26357
-
26358
- declare var ReportBody: {
26359
- prototype: ReportBody;
26360
- new(): ReportBody;
26361
- };
26362
-
26363
26303
  /**
26364
26304
  * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
26365
26305
  *
@@ -30553,6 +30493,31 @@ declare var ScriptProcessorNode: {
30553
30493
  new(): ScriptProcessorNode;
30554
30494
  };
30555
30495
 
30496
+ /**
30497
+ * The **`ScrollTimeline`** interface of the Web Animations API represents a scroll progress timeline (see CSS scroll-driven animations for more details).
30498
+ *
30499
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline)
30500
+ */
30501
+ interface ScrollTimeline extends AnimationTimeline {
30502
+ /**
30503
+ * The **`axis`** read-only property of the An enumerated value.
30504
+ *
30505
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/axis)
30506
+ */
30507
+ readonly axis: ScrollAxis;
30508
+ /**
30509
+ * The **`source`** read-only property of the An Element.
30510
+ *
30511
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/source)
30512
+ */
30513
+ readonly source: Element | null;
30514
+ }
30515
+
30516
+ declare var ScrollTimeline: {
30517
+ prototype: ScrollTimeline;
30518
+ new(options?: ScrollTimelineOptions): ScrollTimeline;
30519
+ };
30520
+
30556
30521
  /**
30557
30522
  * The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
30558
30523
  *
@@ -30853,7 +30818,7 @@ interface ServiceWorkerContainerEventMap {
30853
30818
  */
30854
30819
  interface ServiceWorkerContainer extends EventTarget {
30855
30820
  /**
30856
- * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
30821
+ * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker.
30857
30822
  *
30858
30823
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
30859
30824
  */
@@ -31030,7 +30995,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
31030
30995
  */
31031
30996
  readonly host: Element;
31032
30997
  /**
31033
- * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`.
30998
+ * The **`innerHTML`** property of the ShadowRoot interface gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`.
31034
30999
  *
31035
31000
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)
31036
31001
  */
@@ -31252,6 +31217,58 @@ declare var SpeechRecognitionAlternative: {
31252
31217
  new(): SpeechRecognitionAlternative;
31253
31218
  };
31254
31219
 
31220
+ /**
31221
+ * The **`SpeechRecognitionErrorEvent`** interface of the Web Speech API represents error messages from the recognition service.
31222
+ * Available only in secure contexts.
31223
+ *
31224
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent)
31225
+ */
31226
+ interface SpeechRecognitionErrorEvent extends Event {
31227
+ /**
31228
+ * The **`error`** read-only property of the A string naming the type of error.
31229
+ *
31230
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/error)
31231
+ */
31232
+ readonly error: SpeechRecognitionErrorCode;
31233
+ /**
31234
+ * The **`message`** read-only property of the error in more detail.
31235
+ *
31236
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/message)
31237
+ */
31238
+ readonly message: string;
31239
+ }
31240
+
31241
+ declare var SpeechRecognitionErrorEvent: {
31242
+ prototype: SpeechRecognitionErrorEvent;
31243
+ new(type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent;
31244
+ };
31245
+
31246
+ /**
31247
+ * The **`SpeechRecognitionEvent`** interface of the Web Speech API represents the event object for the SpeechRecognition.result_event and SpeechRecognition.nomatch_event events, and contains all the data associated with an interim or final speech recognition result.
31248
+ * Available only in secure contexts.
31249
+ *
31250
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent)
31251
+ */
31252
+ interface SpeechRecognitionEvent extends Event {
31253
+ /**
31254
+ * The **`resultIndex`** read-only property of the the SpeechRecognitionResultList 'array' that has actually changed.
31255
+ *
31256
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/resultIndex)
31257
+ */
31258
+ readonly resultIndex: number;
31259
+ /**
31260
+ * The **`results`** read-only property of the recognition results for the current session.
31261
+ *
31262
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/results)
31263
+ */
31264
+ readonly results: SpeechRecognitionResultList;
31265
+ }
31266
+
31267
+ declare var SpeechRecognitionEvent: {
31268
+ prototype: SpeechRecognitionEvent;
31269
+ new(type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent;
31270
+ };
31271
+
31255
31272
  /**
31256
31273
  * The **`SpeechRecognitionResult`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects.
31257
31274
  * Available only in secure contexts.
@@ -32035,7 +32052,7 @@ declare var Text: {
32035
32052
  };
32036
32053
 
32037
32054
  /**
32038
- * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.
32055
+ * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
32039
32056
  *
32040
32057
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
32041
32058
  */
@@ -32090,19 +32107,19 @@ declare var TextDecoderStream: {
32090
32107
  };
32091
32108
 
32092
32109
  /**
32093
- * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
32110
+ * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
32094
32111
  *
32095
32112
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
32096
32113
  */
32097
32114
  interface TextEncoder extends TextEncoderCommon {
32098
32115
  /**
32099
- * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
32116
+ * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
32100
32117
  *
32101
32118
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
32102
32119
  */
32103
32120
  encode(input?: string): Uint8Array<ArrayBuffer>;
32104
32121
  /**
32105
- * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
32122
+ * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding.
32106
32123
  *
32107
32124
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
32108
32125
  */
@@ -33036,6 +33053,11 @@ declare var webkitURL: typeof URL;
33036
33053
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
33037
33054
  */
33038
33055
  interface URLPattern {
33056
+ /**
33057
+ * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups.
33058
+ *
33059
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
33060
+ */
33039
33061
  readonly hasRegExpGroups: boolean;
33040
33062
  /**
33041
33063
  * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
@@ -33699,6 +33721,37 @@ declare var VideoPlaybackQuality: {
33699
33721
  new(): VideoPlaybackQuality;
33700
33722
  };
33701
33723
 
33724
+ /**
33725
+ * The **`ViewTimeline`** interface of the Web Animations API represents a view progress timeline (see CSS scroll-driven animations for more details).
33726
+ *
33727
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline)
33728
+ */
33729
+ interface ViewTimeline extends ScrollTimeline {
33730
+ /**
33731
+ * The **`endOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the ending (100% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller.
33732
+ *
33733
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/endOffset)
33734
+ */
33735
+ readonly endOffset: CSSNumericValue;
33736
+ /**
33737
+ * The **`startOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the starting (0% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller.
33738
+ *
33739
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/startOffset)
33740
+ */
33741
+ readonly startOffset: CSSNumericValue;
33742
+ /**
33743
+ * The **`subject`** read-only property of the ViewTimeline interface returns a reference to the subject element whose visibility within its nearest ancestor scrollable element (scroller) is driving the progress of the timeline.
33744
+ *
33745
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/subject)
33746
+ */
33747
+ readonly subject: Element;
33748
+ }
33749
+
33750
+ declare var ViewTimeline: {
33751
+ prototype: ViewTimeline;
33752
+ new(options?: ViewTimelineOptions): ViewTimeline;
33753
+ };
33754
+
33702
33755
  /**
33703
33756
  * The **`ViewTransition`** interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether.
33704
33757
  *
@@ -39529,6 +39582,7 @@ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasEl
39529
39582
  type ClipboardItemData = Promise<string | Blob>;
39530
39583
  type ClipboardItems = ClipboardItem[];
39531
39584
  type ConstrainBoolean = boolean | ConstrainBooleanParameters;
39585
+ type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters;
39532
39586
  type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
39533
39587
  type ConstrainDouble = number | ConstrainDoubleRange;
39534
39588
  type ConstrainULong = number | ConstrainULongRange;
@@ -39753,6 +39807,7 @@ type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
39753
39807
  type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
39754
39808
  type ResizeQuality = "high" | "low" | "medium" | "pixelated";
39755
39809
  type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
39810
+ type ScrollAxis = "block" | "inline" | "x" | "y";
39756
39811
  type ScrollBehavior = "auto" | "instant" | "smooth";
39757
39812
  type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
39758
39813
  type ScrollRestoration = "auto" | "manual";
@@ -39763,6 +39818,7 @@ type ServiceWorkerState = "activated" | "activating" | "installed" | "installing
39763
39818
  type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
39764
39819
  type ShadowRootMode = "closed" | "open";
39765
39820
  type SlotAssignmentMode = "manual" | "named";
39821
+ type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "phrases-not-supported" | "service-not-allowed";
39766
39822
  type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
39767
39823
  type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
39768
39824
  type TextTrackMode = "disabled" | "hidden" | "showing";