@types/web 0.0.245 → 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/README.md +1 -1
- package/index.d.ts +340 -175
- package/package.json +1 -1
- package/ts5.5/index.d.ts +340 -175
- package/ts5.6/index.d.ts +340 -175
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?:
|
|
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
|
}
|
|
@@ -2295,6 +2324,39 @@ interface ULongRange {
|
|
|
2295
2324
|
min?: number;
|
|
2296
2325
|
}
|
|
2297
2326
|
|
|
2327
|
+
interface URLPatternComponentResult {
|
|
2328
|
+
groups?: Record<string, string | undefined>;
|
|
2329
|
+
input?: string;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
interface URLPatternInit {
|
|
2333
|
+
baseURL?: string;
|
|
2334
|
+
hash?: string;
|
|
2335
|
+
hostname?: string;
|
|
2336
|
+
password?: string;
|
|
2337
|
+
pathname?: string;
|
|
2338
|
+
port?: string;
|
|
2339
|
+
protocol?: string;
|
|
2340
|
+
search?: string;
|
|
2341
|
+
username?: string;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
interface URLPatternOptions {
|
|
2345
|
+
ignoreCase?: boolean;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
interface URLPatternResult {
|
|
2349
|
+
hash?: URLPatternComponentResult;
|
|
2350
|
+
hostname?: URLPatternComponentResult;
|
|
2351
|
+
inputs?: URLPatternInput[];
|
|
2352
|
+
password?: URLPatternComponentResult;
|
|
2353
|
+
pathname?: URLPatternComponentResult;
|
|
2354
|
+
port?: URLPatternComponentResult;
|
|
2355
|
+
protocol?: URLPatternComponentResult;
|
|
2356
|
+
search?: URLPatternComponentResult;
|
|
2357
|
+
username?: URLPatternComponentResult;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2298
2360
|
interface UnderlyingByteSource {
|
|
2299
2361
|
autoAllocateChunkSize?: number;
|
|
2300
2362
|
cancel?: UnderlyingSourceCancelCallback;
|
|
@@ -2459,6 +2521,12 @@ interface VideoFrameInit {
|
|
|
2459
2521
|
visibleRect?: DOMRectInit;
|
|
2460
2522
|
}
|
|
2461
2523
|
|
|
2524
|
+
interface ViewTimelineOptions {
|
|
2525
|
+
axis?: ScrollAxis;
|
|
2526
|
+
inset?: string | (CSSNumericValue | CSSKeywordValue)[];
|
|
2527
|
+
subject?: Element;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2462
2530
|
interface WaveShaperOptions extends AudioNodeOptions {
|
|
2463
2531
|
curve?: number[] | Float32Array;
|
|
2464
2532
|
oversample?: OverSampleType;
|
|
@@ -4546,91 +4614,6 @@ declare var CDATASection: {
|
|
|
4546
4614
|
new(): CDATASection;
|
|
4547
4615
|
};
|
|
4548
4616
|
|
|
4549
|
-
/**
|
|
4550
|
-
* The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.
|
|
4551
|
-
*
|
|
4552
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)
|
|
4553
|
-
*/
|
|
4554
|
-
interface CSPViolationReportBody extends ReportBody {
|
|
4555
|
-
/**
|
|
4556
|
-
* 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).
|
|
4557
|
-
*
|
|
4558
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL)
|
|
4559
|
-
*/
|
|
4560
|
-
readonly blockedURL: string | null;
|
|
4561
|
-
/**
|
|
4562
|
-
* 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.
|
|
4563
|
-
*
|
|
4564
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber)
|
|
4565
|
-
*/
|
|
4566
|
-
readonly columnNumber: number | null;
|
|
4567
|
-
/**
|
|
4568
|
-
* 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.
|
|
4569
|
-
*
|
|
4570
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition)
|
|
4571
|
-
*/
|
|
4572
|
-
readonly disposition: SecurityPolicyViolationEventDisposition;
|
|
4573
|
-
/**
|
|
4574
|
-
* 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).
|
|
4575
|
-
*
|
|
4576
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL)
|
|
4577
|
-
*/
|
|
4578
|
-
readonly documentURL: string;
|
|
4579
|
-
/**
|
|
4580
|
-
* The **`effectiveDirective`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated.
|
|
4581
|
-
*
|
|
4582
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective)
|
|
4583
|
-
*/
|
|
4584
|
-
readonly effectiveDirective: string;
|
|
4585
|
-
/**
|
|
4586
|
-
* 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.
|
|
4587
|
-
*
|
|
4588
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber)
|
|
4589
|
-
*/
|
|
4590
|
-
readonly lineNumber: number | null;
|
|
4591
|
-
/**
|
|
4592
|
-
* The **`originalPolicy`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation.
|
|
4593
|
-
*
|
|
4594
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy)
|
|
4595
|
-
*/
|
|
4596
|
-
readonly originalPolicy: string;
|
|
4597
|
-
/**
|
|
4598
|
-
* 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.
|
|
4599
|
-
*
|
|
4600
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer)
|
|
4601
|
-
*/
|
|
4602
|
-
readonly referrer: string | null;
|
|
4603
|
-
/**
|
|
4604
|
-
* 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).
|
|
4605
|
-
*
|
|
4606
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample)
|
|
4607
|
-
*/
|
|
4608
|
-
readonly sample: string | null;
|
|
4609
|
-
/**
|
|
4610
|
-
* The **`sourceFile`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP).
|
|
4611
|
-
*
|
|
4612
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile)
|
|
4613
|
-
*/
|
|
4614
|
-
readonly sourceFile: string | null;
|
|
4615
|
-
/**
|
|
4616
|
-
* 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).
|
|
4617
|
-
*
|
|
4618
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode)
|
|
4619
|
-
*/
|
|
4620
|
-
readonly statusCode: number;
|
|
4621
|
-
/**
|
|
4622
|
-
* The **`toJSON()`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the `CSPViolationReportBody` object.
|
|
4623
|
-
*
|
|
4624
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON)
|
|
4625
|
-
*/
|
|
4626
|
-
toJSON(): any;
|
|
4627
|
-
}
|
|
4628
|
-
|
|
4629
|
-
declare var CSPViolationReportBody: {
|
|
4630
|
-
prototype: CSPViolationReportBody;
|
|
4631
|
-
new(): CSPViolationReportBody;
|
|
4632
|
-
};
|
|
4633
|
-
|
|
4634
4617
|
/**
|
|
4635
4618
|
* The **`CSSAnimation`** interface of the Web Animations API represents an Animation object.
|
|
4636
4619
|
*
|
|
@@ -4872,7 +4855,7 @@ interface CSSGroupingRule extends CSSRule {
|
|
|
4872
4855
|
*/
|
|
4873
4856
|
deleteRule(index: number): void;
|
|
4874
4857
|
/**
|
|
4875
|
-
* The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index`
|
|
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.
|
|
4876
4859
|
*
|
|
4877
4860
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule)
|
|
4878
4861
|
*/
|
|
@@ -6391,6 +6374,8 @@ interface CSSStyleProperties extends CSSStyleDeclaration {
|
|
|
6391
6374
|
fontVariantCaps: string;
|
|
6392
6375
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */
|
|
6393
6376
|
fontVariantEastAsian: string;
|
|
6377
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-emoji) */
|
|
6378
|
+
fontVariantEmoji: string;
|
|
6394
6379
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */
|
|
6395
6380
|
fontVariantLigatures: string;
|
|
6396
6381
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */
|
|
@@ -8780,7 +8765,7 @@ declare var CustomElementRegistry: {
|
|
|
8780
8765
|
};
|
|
8781
8766
|
|
|
8782
8767
|
/**
|
|
8783
|
-
* The **`CustomEvent`** interface
|
|
8768
|
+
* The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
|
|
8784
8769
|
*
|
|
8785
8770
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
8786
8771
|
*/
|
|
@@ -8914,7 +8899,7 @@ interface DOMImplementation {
|
|
|
8914
8899
|
*/
|
|
8915
8900
|
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
|
|
8916
8901
|
/**
|
|
8917
|
-
* 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(
|
|
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`.
|
|
8918
8903
|
*
|
|
8919
8904
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType)
|
|
8920
8905
|
*/
|
|
@@ -10448,6 +10433,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
10448
10433
|
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
|
|
10449
10434
|
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
|
|
10450
10435
|
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
|
|
10436
|
+
createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
|
|
10437
|
+
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
|
|
10451
10438
|
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
|
|
10452
10439
|
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
|
|
10453
10440
|
createEvent(eventInterface: "StorageEvent"): StorageEvent;
|
|
@@ -13728,7 +13715,12 @@ interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
|
|
|
13728
13715
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)
|
|
13729
13716
|
*/
|
|
13730
13717
|
interface HTMLDListElement extends HTMLElement {
|
|
13731
|
-
/**
|
|
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
|
+
*/
|
|
13732
13724
|
compact: boolean;
|
|
13733
13725
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13734
13726
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -13822,6 +13814,12 @@ declare var HTMLDetailsElement: {
|
|
|
13822
13814
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement)
|
|
13823
13815
|
*/
|
|
13824
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;
|
|
13825
13823
|
/**
|
|
13826
13824
|
* The **`open`** property of the `open` HTML attribute, indicating whether the dialog is available for interaction.
|
|
13827
13825
|
*
|
|
@@ -15074,7 +15072,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
15074
15072
|
*/
|
|
15075
15073
|
max: string;
|
|
15076
15074
|
/**
|
|
15077
|
-
* The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16
|
|
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.
|
|
15078
15076
|
*
|
|
15079
15077
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
|
|
15080
15078
|
*/
|
|
@@ -15086,7 +15084,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
15086
15084
|
*/
|
|
15087
15085
|
min: string;
|
|
15088
15086
|
/**
|
|
15089
|
-
* The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16
|
|
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.
|
|
15090
15088
|
*
|
|
15091
15089
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength)
|
|
15092
15090
|
*/
|
|
@@ -15208,7 +15206,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
15208
15206
|
*/
|
|
15209
15207
|
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
15210
15208
|
/**
|
|
15211
|
-
* The **`
|
|
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.
|
|
15212
15210
|
*
|
|
15213
15211
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
|
|
15214
15212
|
*/
|
|
@@ -15854,7 +15852,12 @@ declare var HTMLMediaElement: {
|
|
|
15854
15852
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement)
|
|
15855
15853
|
*/
|
|
15856
15854
|
interface HTMLMenuElement extends HTMLElement {
|
|
15857
|
-
/**
|
|
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
|
+
*/
|
|
15858
15861
|
compact: boolean;
|
|
15859
15862
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
15860
15863
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -16009,7 +16012,12 @@ declare var HTMLModElement: {
|
|
|
16009
16012
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)
|
|
16010
16013
|
*/
|
|
16011
16014
|
interface HTMLOListElement extends HTMLElement {
|
|
16012
|
-
/**
|
|
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
|
+
*/
|
|
16013
16021
|
compact: boolean;
|
|
16014
16022
|
/**
|
|
16015
16023
|
* The **`reversed`** property of the HTMLOListElement interface indicates order of a list.
|
|
@@ -17586,13 +17594,13 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
17586
17594
|
*/
|
|
17587
17595
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
17588
17596
|
/**
|
|
17589
|
-
* The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16
|
|
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.
|
|
17590
17598
|
*
|
|
17591
17599
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength)
|
|
17592
17600
|
*/
|
|
17593
17601
|
maxLength: number;
|
|
17594
17602
|
/**
|
|
17595
|
-
* The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16
|
|
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.
|
|
17596
17604
|
*
|
|
17597
17605
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength)
|
|
17598
17606
|
*/
|
|
@@ -17646,7 +17654,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
17646
17654
|
*/
|
|
17647
17655
|
selectionStart: number;
|
|
17648
17656
|
/**
|
|
17649
|
-
* The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16
|
|
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.
|
|
17650
17658
|
*
|
|
17651
17659
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength)
|
|
17652
17660
|
*/
|
|
@@ -17854,7 +17862,12 @@ declare var HTMLTrackElement: {
|
|
|
17854
17862
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
|
|
17855
17863
|
*/
|
|
17856
17864
|
interface HTMLUListElement extends HTMLElement {
|
|
17857
|
-
/**
|
|
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
|
+
*/
|
|
17858
17871
|
compact: boolean;
|
|
17859
17872
|
/** @deprecated */
|
|
17860
17873
|
type: string;
|
|
@@ -19207,44 +19220,49 @@ declare var InputEvent: {
|
|
|
19207
19220
|
*/
|
|
19208
19221
|
interface IntersectionObserver {
|
|
19209
19222
|
/**
|
|
19210
|
-
* The
|
|
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.
|
|
19211
19224
|
*
|
|
19212
19225
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root)
|
|
19213
19226
|
*/
|
|
19214
19227
|
readonly root: Element | Document | null;
|
|
19215
19228
|
/**
|
|
19216
|
-
* The
|
|
19229
|
+
* The **`rootMargin`** read-only property of the IntersectionObserver interface is a string with syntax similar to that of the CSS margin property.
|
|
19217
19230
|
*
|
|
19218
19231
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin)
|
|
19219
19232
|
*/
|
|
19220
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
|
+
*/
|
|
19221
19239
|
readonly scrollMargin: string;
|
|
19222
19240
|
/**
|
|
19223
|
-
* The
|
|
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.
|
|
19224
19242
|
*
|
|
19225
19243
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds)
|
|
19226
19244
|
*/
|
|
19227
19245
|
readonly thresholds: ReadonlyArray<number>;
|
|
19228
19246
|
/**
|
|
19229
|
-
* The
|
|
19247
|
+
* The **`disconnect()`** method of the IntersectionObserver interface stops the observer watching all of its target elements for visibility changes.
|
|
19230
19248
|
*
|
|
19231
19249
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect)
|
|
19232
19250
|
*/
|
|
19233
19251
|
disconnect(): void;
|
|
19234
19252
|
/**
|
|
19235
|
-
* The
|
|
19253
|
+
* The **`observe()`** method of the IntersectionObserver interface adds an element to the set of target elements being watched by the `IntersectionObserver`.
|
|
19236
19254
|
*
|
|
19237
19255
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe)
|
|
19238
19256
|
*/
|
|
19239
19257
|
observe(target: Element): void;
|
|
19240
19258
|
/**
|
|
19241
|
-
* The
|
|
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.
|
|
19242
19260
|
*
|
|
19243
19261
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords)
|
|
19244
19262
|
*/
|
|
19245
19263
|
takeRecords(): IntersectionObserverEntry[];
|
|
19246
19264
|
/**
|
|
19247
|
-
* The
|
|
19265
|
+
* The **`unobserve()`** method of the IntersectionObserver interface instructs the `IntersectionObserver` to stop observing the specified target element.
|
|
19248
19266
|
*
|
|
19249
19267
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve)
|
|
19250
19268
|
*/
|
|
@@ -19263,43 +19281,43 @@ declare var IntersectionObserver: {
|
|
|
19263
19281
|
*/
|
|
19264
19282
|
interface IntersectionObserverEntry {
|
|
19265
19283
|
/**
|
|
19266
|
-
* The
|
|
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.
|
|
19267
19285
|
*
|
|
19268
19286
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect)
|
|
19269
19287
|
*/
|
|
19270
19288
|
readonly boundingClientRect: DOMRectReadOnly;
|
|
19271
19289
|
/**
|
|
19272
|
-
* The
|
|
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.
|
|
19273
19291
|
*
|
|
19274
19292
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio)
|
|
19275
19293
|
*/
|
|
19276
19294
|
readonly intersectionRatio: number;
|
|
19277
19295
|
/**
|
|
19278
|
-
* The
|
|
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.
|
|
19279
19297
|
*
|
|
19280
19298
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect)
|
|
19281
19299
|
*/
|
|
19282
19300
|
readonly intersectionRect: DOMRectReadOnly;
|
|
19283
19301
|
/**
|
|
19284
|
-
* The
|
|
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.
|
|
19285
19303
|
*
|
|
19286
19304
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting)
|
|
19287
19305
|
*/
|
|
19288
19306
|
readonly isIntersecting: boolean;
|
|
19289
19307
|
/**
|
|
19290
|
-
* The
|
|
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.
|
|
19291
19309
|
*
|
|
19292
19310
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds)
|
|
19293
19311
|
*/
|
|
19294
19312
|
readonly rootBounds: DOMRectReadOnly | null;
|
|
19295
19313
|
/**
|
|
19296
|
-
* The
|
|
19314
|
+
* The **`target`** read-only property of the IntersectionObserverEntry interface indicates which targeted Element has changed its amount of intersection with the intersection root.
|
|
19297
19315
|
*
|
|
19298
19316
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target)
|
|
19299
19317
|
*/
|
|
19300
19318
|
readonly target: Element;
|
|
19301
19319
|
/**
|
|
19302
|
-
* The
|
|
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.
|
|
19303
19321
|
*
|
|
19304
19322
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time)
|
|
19305
19323
|
*/
|
|
@@ -23633,13 +23651,13 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming {
|
|
|
23633
23651
|
*/
|
|
23634
23652
|
readonly type: NavigationTimingType;
|
|
23635
23653
|
/**
|
|
23636
|
-
* The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the
|
|
23654
|
+
* The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the previous document's `unload` event handler completes.
|
|
23637
23655
|
*
|
|
23638
23656
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)
|
|
23639
23657
|
*/
|
|
23640
23658
|
readonly unloadEventEnd: DOMHighResTimeStamp;
|
|
23641
23659
|
/**
|
|
23642
|
-
* The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the
|
|
23660
|
+
* The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the previous document's `unload` event handler starts.
|
|
23643
23661
|
*
|
|
23644
23662
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)
|
|
23645
23663
|
*/
|
|
@@ -24295,6 +24313,12 @@ interface PointerEvent extends MouseEvent {
|
|
|
24295
24313
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary)
|
|
24296
24314
|
*/
|
|
24297
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;
|
|
24298
24322
|
/**
|
|
24299
24323
|
* The **`pointerId`** read-only property of the event.
|
|
24300
24324
|
*
|
|
@@ -26276,57 +26300,6 @@ declare var RemotePlayback: {
|
|
|
26276
26300
|
new(): RemotePlayback;
|
|
26277
26301
|
};
|
|
26278
26302
|
|
|
26279
|
-
/**
|
|
26280
|
-
* The `Report` interface of the Reporting API represents a single report.
|
|
26281
|
-
*
|
|
26282
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
26283
|
-
*/
|
|
26284
|
-
interface Report {
|
|
26285
|
-
/**
|
|
26286
|
-
* 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.
|
|
26287
|
-
*
|
|
26288
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
|
|
26289
|
-
*/
|
|
26290
|
-
readonly body: ReportBody | null;
|
|
26291
|
-
/**
|
|
26292
|
-
* The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
|
|
26293
|
-
*
|
|
26294
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
|
|
26295
|
-
*/
|
|
26296
|
-
readonly type: string;
|
|
26297
|
-
/**
|
|
26298
|
-
* The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
26299
|
-
*
|
|
26300
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
26301
|
-
*/
|
|
26302
|
-
readonly url: string;
|
|
26303
|
-
toJSON(): any;
|
|
26304
|
-
}
|
|
26305
|
-
|
|
26306
|
-
declare var Report: {
|
|
26307
|
-
prototype: Report;
|
|
26308
|
-
new(): Report;
|
|
26309
|
-
};
|
|
26310
|
-
|
|
26311
|
-
/**
|
|
26312
|
-
* The **`ReportBody`** interface of the Reporting API represents the body of a report.
|
|
26313
|
-
*
|
|
26314
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
26315
|
-
*/
|
|
26316
|
-
interface ReportBody {
|
|
26317
|
-
/**
|
|
26318
|
-
* The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
|
|
26319
|
-
*
|
|
26320
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
|
|
26321
|
-
*/
|
|
26322
|
-
toJSON(): any;
|
|
26323
|
-
}
|
|
26324
|
-
|
|
26325
|
-
declare var ReportBody: {
|
|
26326
|
-
prototype: ReportBody;
|
|
26327
|
-
new(): ReportBody;
|
|
26328
|
-
};
|
|
26329
|
-
|
|
26330
26303
|
/**
|
|
26331
26304
|
* The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
|
|
26332
26305
|
*
|
|
@@ -30520,6 +30493,31 @@ declare var ScriptProcessorNode: {
|
|
|
30520
30493
|
new(): ScriptProcessorNode;
|
|
30521
30494
|
};
|
|
30522
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
|
+
|
|
30523
30521
|
/**
|
|
30524
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.
|
|
30525
30523
|
*
|
|
@@ -30820,7 +30818,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
30820
30818
|
*/
|
|
30821
30819
|
interface ServiceWorkerContainer extends EventTarget {
|
|
30822
30820
|
/**
|
|
30823
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface
|
|
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.
|
|
30824
30822
|
*
|
|
30825
30823
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
30826
30824
|
*/
|
|
@@ -30997,7 +30995,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
30997
30995
|
*/
|
|
30998
30996
|
readonly host: Element;
|
|
30999
30997
|
/**
|
|
31000
|
-
* The **`innerHTML`** property of the ShadowRoot interface
|
|
30998
|
+
* The **`innerHTML`** property of the ShadowRoot interface gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`.
|
|
31001
30999
|
*
|
|
31002
31000
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)
|
|
31003
31001
|
*/
|
|
@@ -31219,6 +31217,58 @@ declare var SpeechRecognitionAlternative: {
|
|
|
31219
31217
|
new(): SpeechRecognitionAlternative;
|
|
31220
31218
|
};
|
|
31221
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
|
+
|
|
31222
31272
|
/**
|
|
31223
31273
|
* The **`SpeechRecognitionResult`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects.
|
|
31224
31274
|
* Available only in secure contexts.
|
|
@@ -32002,7 +32052,7 @@ declare var Text: {
|
|
|
32002
32052
|
};
|
|
32003
32053
|
|
|
32004
32054
|
/**
|
|
32005
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`,
|
|
32055
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
32006
32056
|
*
|
|
32007
32057
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
32008
32058
|
*/
|
|
@@ -32057,19 +32107,19 @@ declare var TextDecoderStream: {
|
|
|
32057
32107
|
};
|
|
32058
32108
|
|
|
32059
32109
|
/**
|
|
32060
|
-
* The **`TextEncoder`** interface
|
|
32110
|
+
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
|
|
32061
32111
|
*
|
|
32062
32112
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
32063
32113
|
*/
|
|
32064
32114
|
interface TextEncoder extends TextEncoderCommon {
|
|
32065
32115
|
/**
|
|
32066
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the
|
|
32116
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
|
|
32067
32117
|
*
|
|
32068
32118
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
32069
32119
|
*/
|
|
32070
32120
|
encode(input?: string): Uint8Array<ArrayBuffer>;
|
|
32071
32121
|
/**
|
|
32072
|
-
* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns
|
|
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.
|
|
32073
32123
|
*
|
|
32074
32124
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
32075
32125
|
*/
|
|
@@ -32997,6 +33047,86 @@ declare var URL: {
|
|
|
32997
33047
|
type webkitURL = URL;
|
|
32998
33048
|
declare var webkitURL: typeof URL;
|
|
32999
33049
|
|
|
33050
|
+
/**
|
|
33051
|
+
* The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
|
|
33052
|
+
*
|
|
33053
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
33054
|
+
*/
|
|
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
|
+
*/
|
|
33061
|
+
readonly hasRegExpGroups: boolean;
|
|
33062
|
+
/**
|
|
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.
|
|
33064
|
+
*
|
|
33065
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
|
|
33066
|
+
*/
|
|
33067
|
+
readonly hash: string;
|
|
33068
|
+
/**
|
|
33069
|
+
* The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
|
|
33070
|
+
*
|
|
33071
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
|
|
33072
|
+
*/
|
|
33073
|
+
readonly hostname: string;
|
|
33074
|
+
/**
|
|
33075
|
+
* The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
|
|
33076
|
+
*
|
|
33077
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
|
|
33078
|
+
*/
|
|
33079
|
+
readonly password: string;
|
|
33080
|
+
/**
|
|
33081
|
+
* The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
|
|
33082
|
+
*
|
|
33083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
|
|
33084
|
+
*/
|
|
33085
|
+
readonly pathname: string;
|
|
33086
|
+
/**
|
|
33087
|
+
* The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
|
|
33088
|
+
*
|
|
33089
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
|
|
33090
|
+
*/
|
|
33091
|
+
readonly port: string;
|
|
33092
|
+
/**
|
|
33093
|
+
* The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
|
|
33094
|
+
*
|
|
33095
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
|
|
33096
|
+
*/
|
|
33097
|
+
readonly protocol: string;
|
|
33098
|
+
/**
|
|
33099
|
+
* The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
|
|
33100
|
+
*
|
|
33101
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
|
|
33102
|
+
*/
|
|
33103
|
+
readonly search: string;
|
|
33104
|
+
/**
|
|
33105
|
+
* The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
|
|
33106
|
+
*
|
|
33107
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
|
|
33108
|
+
*/
|
|
33109
|
+
readonly username: string;
|
|
33110
|
+
/**
|
|
33111
|
+
* The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or `null` if the URL does not match the pattern.
|
|
33112
|
+
*
|
|
33113
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
|
|
33114
|
+
*/
|
|
33115
|
+
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
|
|
33116
|
+
/**
|
|
33117
|
+
* The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
|
|
33118
|
+
*
|
|
33119
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
|
|
33120
|
+
*/
|
|
33121
|
+
test(input?: URLPatternInput, baseURL?: string | URL): boolean;
|
|
33122
|
+
}
|
|
33123
|
+
|
|
33124
|
+
declare var URLPattern: {
|
|
33125
|
+
prototype: URLPattern;
|
|
33126
|
+
new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
|
|
33127
|
+
new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
|
|
33128
|
+
};
|
|
33129
|
+
|
|
33000
33130
|
/**
|
|
33001
33131
|
* The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
|
|
33002
33132
|
*
|
|
@@ -33591,6 +33721,37 @@ declare var VideoPlaybackQuality: {
|
|
|
33591
33721
|
new(): VideoPlaybackQuality;
|
|
33592
33722
|
};
|
|
33593
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
|
+
|
|
33594
33755
|
/**
|
|
33595
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.
|
|
33596
33757
|
*
|
|
@@ -39421,6 +39582,7 @@ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasEl
|
|
|
39421
39582
|
type ClipboardItemData = Promise<string | Blob>;
|
|
39422
39583
|
type ClipboardItems = ClipboardItem[];
|
|
39423
39584
|
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
|
39585
|
+
type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters;
|
|
39424
39586
|
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
|
39425
39587
|
type ConstrainDouble = number | ConstrainDoubleRange;
|
|
39426
39588
|
type ConstrainULong = number | ConstrainULongRange;
|
|
@@ -39475,6 +39637,7 @@ type RequestInfo = Request | string;
|
|
|
39475
39637
|
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
|
|
39476
39638
|
type TimerHandler = string | Function;
|
|
39477
39639
|
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
|
|
39640
|
+
type URLPatternInput = string | URLPatternInit;
|
|
39478
39641
|
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
|
|
39479
39642
|
type VibratePattern = number | number[];
|
|
39480
39643
|
type WindowProxy = Window;
|
|
@@ -39644,6 +39807,7 @@ type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
|
|
|
39644
39807
|
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
|
|
39645
39808
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
39646
39809
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
|
39810
|
+
type ScrollAxis = "block" | "inline" | "x" | "y";
|
|
39647
39811
|
type ScrollBehavior = "auto" | "instant" | "smooth";
|
|
39648
39812
|
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
|
|
39649
39813
|
type ScrollRestoration = "auto" | "manual";
|
|
@@ -39654,6 +39818,7 @@ type ServiceWorkerState = "activated" | "activating" | "installed" | "installing
|
|
|
39654
39818
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
39655
39819
|
type ShadowRootMode = "closed" | "open";
|
|
39656
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";
|
|
39657
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";
|
|
39658
39823
|
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
|
|
39659
39824
|
type TextTrackMode = "disabled" | "hidden" | "showing";
|