@types/web 0.0.271 → 0.0.273

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
@@ -1,6 +1,9 @@
1
1
  /// <reference path="./iterable.d.ts" />
2
2
  /// <reference path="./asynciterable.d.ts" />
3
3
 
4
+ /// <reference lib="es2015" />
5
+ /// <reference lib="es2018.asynciterable" />
6
+
4
7
  /////////////////////////////
5
8
  /// Window APIs
6
9
  /////////////////////////////
@@ -2366,8 +2369,8 @@ interface ULongRange {
2366
2369
  }
2367
2370
 
2368
2371
  interface URLPatternComponentResult {
2369
- groups?: Record<string, string | undefined>;
2370
- input?: string;
2372
+ groups: Record<string, string | undefined>;
2373
+ input: string;
2371
2374
  }
2372
2375
 
2373
2376
  interface URLPatternInit {
@@ -2387,15 +2390,15 @@ interface URLPatternOptions {
2387
2390
  }
2388
2391
 
2389
2392
  interface URLPatternResult {
2390
- hash?: URLPatternComponentResult;
2391
- hostname?: URLPatternComponentResult;
2392
- inputs?: URLPatternInput[];
2393
- password?: URLPatternComponentResult;
2394
- pathname?: URLPatternComponentResult;
2395
- port?: URLPatternComponentResult;
2396
- protocol?: URLPatternComponentResult;
2397
- search?: URLPatternComponentResult;
2398
- username?: URLPatternComponentResult;
2393
+ hash: URLPatternComponentResult;
2394
+ hostname: URLPatternComponentResult;
2395
+ inputs: URLPatternInput[];
2396
+ password: URLPatternComponentResult;
2397
+ pathname: URLPatternComponentResult;
2398
+ port: URLPatternComponentResult;
2399
+ protocol: URLPatternComponentResult;
2400
+ search: URLPatternComponentResult;
2401
+ username: URLPatternComponentResult;
2399
2402
  }
2400
2403
 
2401
2404
  interface UnderlyingByteSource {
@@ -4824,7 +4827,7 @@ interface CSSFontFaceRule extends CSSRule {
4824
4827
  *
4825
4828
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
4826
4829
  */
4827
- get style(): CSSStyleProperties;
4830
+ get style(): CSSStyleDeclaration;
4828
4831
  set style(cssText: string);
4829
4832
  }
4830
4833
 
@@ -4994,7 +4997,7 @@ interface CSSKeyframeRule extends CSSRule {
4994
4997
  *
4995
4998
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
4996
4999
  */
4997
- get style(): CSSStyleProperties;
5000
+ get style(): CSSStyleDeclaration;
4998
5001
  set style(cssText: string);
4999
5002
  }
5000
5003
 
@@ -5329,7 +5332,7 @@ interface CSSNestedDeclarations extends CSSRule {
5329
5332
  *
5330
5333
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
5331
5334
  */
5332
- get style(): CSSStyleProperties;
5335
+ get style(): CSSStyleDeclaration;
5333
5336
  set style(cssText: string);
5334
5337
  }
5335
5338
 
@@ -5443,7 +5446,7 @@ declare var CSSNumericValue: {
5443
5446
  *
5444
5447
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
5445
5448
  */
5446
- interface CSSPageDescriptors extends CSSStyleDeclaration {
5449
+ interface CSSPageDescriptors extends CSSStyleDeclarationBase {
5447
5450
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
5448
5451
  margin: string;
5449
5452
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
@@ -5521,7 +5524,7 @@ declare var CSSPerspective: {
5521
5524
  *
5522
5525
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
5523
5526
  */
5524
- interface CSSPositionTryDescriptors extends CSSStyleDeclaration {
5527
+ interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
5525
5528
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
5526
5529
  "align-self": string;
5527
5530
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
@@ -5995,7 +5998,7 @@ declare var CSSStartingStyleRule: {
5995
5998
  *
5996
5999
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
5997
6000
  */
5998
- interface CSSStyleDeclaration {
6001
+ interface CSSStyleDeclarationBase {
5999
6002
  /**
6000
6003
  * The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
6001
6004
  *
@@ -6047,12 +6050,15 @@ interface CSSStyleDeclaration {
6047
6050
  [index: number]: string;
6048
6051
  }
6049
6052
 
6053
+ interface CSSStyleDeclaration extends CSSStyleProperties {
6054
+ }
6055
+
6050
6056
  declare var CSSStyleDeclaration: {
6051
6057
  prototype: CSSStyleDeclaration;
6052
6058
  new(): CSSStyleDeclaration;
6053
6059
  };
6054
6060
 
6055
- interface CSSStyleProperties extends CSSStyleDeclaration {
6061
+ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6056
6062
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
6057
6063
  accentColor: string;
6058
6064
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
@@ -7417,7 +7423,7 @@ interface CSSStyleRule extends CSSGroupingRule {
7417
7423
  *
7418
7424
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
7419
7425
  */
7420
- get style(): CSSStyleProperties;
7426
+ get style(): CSSStyleDeclaration;
7421
7427
  set style(cssText: string);
7422
7428
  /**
7423
7429
  * The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
@@ -11461,7 +11467,7 @@ interface ElementCSSInlineStyle {
11461
11467
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
11462
11468
  readonly attributeStyleMap: StylePropertyMap;
11463
11469
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
11464
- get style(): CSSStyleProperties;
11470
+ get style(): CSSStyleDeclaration;
11465
11471
  set style(cssText: string);
11466
11472
  }
11467
11473
 
@@ -37358,7 +37364,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
37358
37364
  *
37359
37365
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
37360
37366
  */
37361
- getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
37367
+ getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
37362
37368
  /**
37363
37369
  * The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
37364
37370
  *
@@ -39460,7 +39466,7 @@ declare function focus(): void;
39460
39466
  *
39461
39467
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
39462
39468
  */
39463
- declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleProperties;
39469
+ declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
39464
39470
  /**
39465
39471
  * The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
39466
39472
  *
@@ -40170,3 +40176,583 @@ type WebTransportErrorSource = "session" | "stream";
40170
40176
  type WorkerType = "classic" | "module";
40171
40177
  type WriteCommandType = "seek" | "truncate" | "write";
40172
40178
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
40179
+
40180
+
40181
+ /////////////////////////////
40182
+ /// Window Iterable APIs
40183
+ /////////////////////////////
40184
+
40185
+ interface AudioParam {
40186
+ /**
40187
+ * The **`setValueCurveAtTime()`** method of the AudioParam interface schedules the parameter's value to change following a curve defined by a list of values.
40188
+ *
40189
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)
40190
+ */
40191
+ setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
40192
+ }
40193
+
40194
+ interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
40195
+ }
40196
+
40197
+ interface BaseAudioContext {
40198
+ /**
40199
+ * The **`createIIRFilter()`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
40200
+ *
40201
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
40202
+ */
40203
+ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
40204
+ /**
40205
+ * The `createPeriodicWave()` method of the BaseAudioContext interface is used to create a PeriodicWave.
40206
+ *
40207
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
40208
+ */
40209
+ createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
40210
+ }
40211
+
40212
+ interface CSSKeyframesRule {
40213
+ [Symbol.iterator](): ArrayIterator<CSSKeyframeRule>;
40214
+ }
40215
+
40216
+ interface CSSNumericArray {
40217
+ [Symbol.iterator](): ArrayIterator<CSSNumericValue>;
40218
+ entries(): ArrayIterator<[number, CSSNumericValue]>;
40219
+ keys(): ArrayIterator<number>;
40220
+ values(): ArrayIterator<CSSNumericValue>;
40221
+ }
40222
+
40223
+ interface CSSRuleList {
40224
+ [Symbol.iterator](): ArrayIterator<CSSRule>;
40225
+ }
40226
+
40227
+ interface CSSStyleDeclaration {
40228
+ [Symbol.iterator](): ArrayIterator<string>;
40229
+ }
40230
+
40231
+ interface CSSTransformValue {
40232
+ [Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
40233
+ entries(): ArrayIterator<[number, CSSTransformComponent]>;
40234
+ keys(): ArrayIterator<number>;
40235
+ values(): ArrayIterator<CSSTransformComponent>;
40236
+ }
40237
+
40238
+ interface CSSUnparsedValue {
40239
+ [Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
40240
+ entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
40241
+ keys(): ArrayIterator<number>;
40242
+ values(): ArrayIterator<CSSUnparsedSegment>;
40243
+ }
40244
+
40245
+ interface Cache {
40246
+ /**
40247
+ * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
40248
+ *
40249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
40250
+ */
40251
+ addAll(requests: RequestInfo[]): Promise<void>;
40252
+ }
40253
+
40254
+ interface CanvasPath {
40255
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
40256
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
40257
+ }
40258
+
40259
+ interface CanvasPathDrawingStyles {
40260
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
40261
+ setLineDash(segments: number[]): void;
40262
+ }
40263
+
40264
+ interface CookieStoreManager {
40265
+ /**
40266
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
40267
+ *
40268
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
40269
+ */
40270
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
40271
+ /**
40272
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
40273
+ *
40274
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
40275
+ */
40276
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
40277
+ }
40278
+
40279
+ interface CustomStateSet extends Set<string> {
40280
+ }
40281
+
40282
+ interface DOMRectList {
40283
+ [Symbol.iterator](): ArrayIterator<DOMRect>;
40284
+ }
40285
+
40286
+ interface DOMStringList {
40287
+ [Symbol.iterator](): ArrayIterator<string>;
40288
+ }
40289
+
40290
+ interface DOMTokenList {
40291
+ [Symbol.iterator](): ArrayIterator<string>;
40292
+ entries(): ArrayIterator<[number, string]>;
40293
+ keys(): ArrayIterator<number>;
40294
+ values(): ArrayIterator<string>;
40295
+ }
40296
+
40297
+ interface DataTransferItemList {
40298
+ [Symbol.iterator](): ArrayIterator<DataTransferItem>;
40299
+ }
40300
+
40301
+ interface EventCounts extends ReadonlyMap<string, number> {
40302
+ }
40303
+
40304
+ interface FileList {
40305
+ [Symbol.iterator](): ArrayIterator<File>;
40306
+ }
40307
+
40308
+ interface FontFaceSet extends Set<FontFace> {
40309
+ }
40310
+
40311
+ interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
40312
+ [Symbol.iterator](): FormDataIterator<T>;
40313
+ }
40314
+
40315
+ interface FormData {
40316
+ [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
40317
+ /** Returns an array of key, value pairs for every entry in the list. */
40318
+ entries(): FormDataIterator<[string, FormDataEntryValue]>;
40319
+ /** Returns a list of keys in the list. */
40320
+ keys(): FormDataIterator<string>;
40321
+ /** Returns a list of values in the list. */
40322
+ values(): FormDataIterator<FormDataEntryValue>;
40323
+ }
40324
+
40325
+ interface HTMLAllCollection {
40326
+ [Symbol.iterator](): ArrayIterator<Element>;
40327
+ }
40328
+
40329
+ interface HTMLCollectionBase {
40330
+ [Symbol.iterator](): ArrayIterator<Element>;
40331
+ }
40332
+
40333
+ interface HTMLCollectionOf<T extends Element> {
40334
+ [Symbol.iterator](): ArrayIterator<T>;
40335
+ }
40336
+
40337
+ interface HTMLFormElement {
40338
+ [Symbol.iterator](): ArrayIterator<Element>;
40339
+ }
40340
+
40341
+ interface HTMLSelectElement {
40342
+ [Symbol.iterator](): ArrayIterator<HTMLOptionElement>;
40343
+ }
40344
+
40345
+ interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
40346
+ [Symbol.iterator](): HeadersIterator<T>;
40347
+ }
40348
+
40349
+ interface Headers {
40350
+ [Symbol.iterator](): HeadersIterator<[string, string]>;
40351
+ /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
40352
+ entries(): HeadersIterator<[string, string]>;
40353
+ /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
40354
+ keys(): HeadersIterator<string>;
40355
+ /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
40356
+ values(): HeadersIterator<string>;
40357
+ }
40358
+
40359
+ interface Highlight extends Set<AbstractRange> {
40360
+ }
40361
+
40362
+ interface HighlightRegistry extends Map<string, Highlight> {
40363
+ }
40364
+
40365
+ interface IDBDatabase {
40366
+ /**
40367
+ * The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
40368
+ *
40369
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
40370
+ */
40371
+ transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
40372
+ }
40373
+
40374
+ interface IDBObjectStore {
40375
+ /**
40376
+ * The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database.
40377
+ *
40378
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
40379
+ */
40380
+ createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
40381
+ }
40382
+
40383
+ interface ImageTrackList {
40384
+ [Symbol.iterator](): ArrayIterator<ImageTrack>;
40385
+ }
40386
+
40387
+ interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
40388
+ }
40389
+
40390
+ interface MIDIOutput {
40391
+ /**
40392
+ * The **`send()`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
40393
+ *
40394
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)
40395
+ */
40396
+ send(data: number[], timestamp?: DOMHighResTimeStamp): void;
40397
+ }
40398
+
40399
+ interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
40400
+ }
40401
+
40402
+ interface MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
40403
+ [Symbol.iterator](): MediaKeyStatusMapIterator<T>;
40404
+ }
40405
+
40406
+ interface MediaKeyStatusMap {
40407
+ [Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
40408
+ entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
40409
+ keys(): MediaKeyStatusMapIterator<BufferSource>;
40410
+ values(): MediaKeyStatusMapIterator<MediaKeyStatus>;
40411
+ }
40412
+
40413
+ interface MediaList {
40414
+ [Symbol.iterator](): ArrayIterator<string>;
40415
+ }
40416
+
40417
+ interface MessageEvent<T = any> {
40418
+ /** @deprecated */
40419
+ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
40420
+ }
40421
+
40422
+ interface MimeTypeArray {
40423
+ [Symbol.iterator](): ArrayIterator<MimeType>;
40424
+ }
40425
+
40426
+ interface NamedNodeMap {
40427
+ [Symbol.iterator](): ArrayIterator<Attr>;
40428
+ }
40429
+
40430
+ interface Navigator {
40431
+ /**
40432
+ * The **`requestMediaKeySystemAccess()`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
40433
+ * Available only in secure contexts.
40434
+ *
40435
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
40436
+ */
40437
+ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
40438
+ /**
40439
+ * The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
40440
+ *
40441
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
40442
+ */
40443
+ vibrate(pattern: number[]): boolean;
40444
+ }
40445
+
40446
+ interface NodeList {
40447
+ [Symbol.iterator](): ArrayIterator<Node>;
40448
+ /** Returns an array of key, value pairs for every entry in the list. */
40449
+ entries(): ArrayIterator<[number, Node]>;
40450
+ /** Returns an list of keys in the list. */
40451
+ keys(): ArrayIterator<number>;
40452
+ /** Returns an list of values in the list. */
40453
+ values(): ArrayIterator<Node>;
40454
+ }
40455
+
40456
+ interface NodeListOf<TNode extends Node> {
40457
+ [Symbol.iterator](): ArrayIterator<TNode>;
40458
+ /** Returns an array of key, value pairs for every entry in the list. */
40459
+ entries(): ArrayIterator<[number, TNode]>;
40460
+ /** Returns an list of keys in the list. */
40461
+ keys(): ArrayIterator<number>;
40462
+ /** Returns an list of values in the list. */
40463
+ values(): ArrayIterator<TNode>;
40464
+ }
40465
+
40466
+ interface Plugin {
40467
+ [Symbol.iterator](): ArrayIterator<MimeType>;
40468
+ }
40469
+
40470
+ interface PluginArray {
40471
+ [Symbol.iterator](): ArrayIterator<Plugin>;
40472
+ }
40473
+
40474
+ interface RTCRtpTransceiver {
40475
+ /**
40476
+ * The **`setCodecPreferences()`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.
40477
+ *
40478
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
40479
+ */
40480
+ setCodecPreferences(codecs: RTCRtpCodec[]): void;
40481
+ }
40482
+
40483
+ interface RTCStatsReport extends ReadonlyMap<string, any> {
40484
+ }
40485
+
40486
+ interface SVGLengthList {
40487
+ [Symbol.iterator](): ArrayIterator<SVGLength>;
40488
+ }
40489
+
40490
+ interface SVGNumberList {
40491
+ [Symbol.iterator](): ArrayIterator<SVGNumber>;
40492
+ }
40493
+
40494
+ interface SVGPointList {
40495
+ [Symbol.iterator](): ArrayIterator<DOMPoint>;
40496
+ }
40497
+
40498
+ interface SVGStringList {
40499
+ [Symbol.iterator](): ArrayIterator<string>;
40500
+ }
40501
+
40502
+ interface SVGTransformList {
40503
+ [Symbol.iterator](): ArrayIterator<SVGTransform>;
40504
+ }
40505
+
40506
+ interface SourceBufferList {
40507
+ [Symbol.iterator](): ArrayIterator<SourceBuffer>;
40508
+ }
40509
+
40510
+ interface SpeechRecognitionResult {
40511
+ [Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>;
40512
+ }
40513
+
40514
+ interface SpeechRecognitionResultList {
40515
+ [Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>;
40516
+ }
40517
+
40518
+ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
40519
+ [Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
40520
+ }
40521
+
40522
+ interface StylePropertyMapReadOnly {
40523
+ [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
40524
+ entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>;
40525
+ keys(): StylePropertyMapReadOnlyIterator<string>;
40526
+ values(): StylePropertyMapReadOnlyIterator<CSSStyleValue[]>;
40527
+ }
40528
+
40529
+ interface StyleSheetList {
40530
+ [Symbol.iterator](): ArrayIterator<CSSStyleSheet>;
40531
+ }
40532
+
40533
+ interface SubtleCrypto {
40534
+ /**
40535
+ * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
40536
+ *
40537
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
40538
+ */
40539
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
40540
+ /**
40541
+ * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
40542
+ *
40543
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
40544
+ */
40545
+ generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
40546
+ generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
40547
+ generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
40548
+ generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
40549
+ /**
40550
+ * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
40551
+ *
40552
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
40553
+ */
40554
+ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
40555
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
40556
+ /**
40557
+ * The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
40558
+ *
40559
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
40560
+ */
40561
+ unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
40562
+ }
40563
+
40564
+ interface TextTrackCueList {
40565
+ [Symbol.iterator](): ArrayIterator<TextTrackCue>;
40566
+ }
40567
+
40568
+ interface TextTrackList {
40569
+ [Symbol.iterator](): ArrayIterator<TextTrack>;
40570
+ }
40571
+
40572
+ interface TouchList {
40573
+ [Symbol.iterator](): ArrayIterator<Touch>;
40574
+ }
40575
+
40576
+ interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
40577
+ [Symbol.iterator](): URLSearchParamsIterator<T>;
40578
+ }
40579
+
40580
+ interface URLSearchParams {
40581
+ [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
40582
+ /** Returns an array of key, value pairs for every entry in the search params. */
40583
+ entries(): URLSearchParamsIterator<[string, string]>;
40584
+ /** Returns a list of keys in the search params. */
40585
+ keys(): URLSearchParamsIterator<string>;
40586
+ /** Returns a list of values in the search params. */
40587
+ values(): URLSearchParamsIterator<string>;
40588
+ }
40589
+
40590
+ interface ViewTransitionTypeSet extends Set<string> {
40591
+ }
40592
+
40593
+ interface WEBGL_draw_buffers {
40594
+ /**
40595
+ * The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
40596
+ *
40597
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
40598
+ */
40599
+ drawBuffersWEBGL(buffers: GLenum[]): void;
40600
+ }
40601
+
40602
+ interface WEBGL_multi_draw {
40603
+ /**
40604
+ * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
40605
+ *
40606
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
40607
+ */
40608
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
40609
+ /**
40610
+ * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
40611
+ *
40612
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
40613
+ */
40614
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
40615
+ /**
40616
+ * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
40617
+ *
40618
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
40619
+ */
40620
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
40621
+ /**
40622
+ * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
40623
+ *
40624
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
40625
+ */
40626
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
40627
+ }
40628
+
40629
+ interface WebGL2RenderingContextBase {
40630
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
40631
+ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
40632
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
40633
+ clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint[], srcOffset?: number): void;
40634
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
40635
+ clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint[], srcOffset?: number): void;
40636
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
40637
+ drawBuffers(buffers: GLenum[]): void;
40638
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
40639
+ getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
40640
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
40641
+ getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
40642
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
40643
+ invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
40644
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
40645
+ invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
40646
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
40647
+ transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
40648
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
40649
+ uniform1uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
40650
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
40651
+ uniform2uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
40652
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
40653
+ uniform3uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
40654
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
40655
+ uniform4uiv(location: WebGLUniformLocation | null, data: GLuint[], srcOffset?: number, srcLength?: GLuint): void;
40656
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
40657
+ uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40658
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
40659
+ uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40660
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
40661
+ uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40662
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
40663
+ uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40664
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
40665
+ uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40666
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
40667
+ uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40668
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
40669
+ vertexAttribI4iv(index: GLuint, values: GLint[]): void;
40670
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
40671
+ vertexAttribI4uiv(index: GLuint, values: GLuint[]): void;
40672
+ }
40673
+
40674
+ interface WebGL2RenderingContextOverloads {
40675
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40676
+ uniform1fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40677
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40678
+ uniform1iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
40679
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40680
+ uniform2fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40681
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40682
+ uniform2iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
40683
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40684
+ uniform3fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40685
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40686
+ uniform3iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
40687
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40688
+ uniform4fv(location: WebGLUniformLocation | null, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40689
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40690
+ uniform4iv(location: WebGLUniformLocation | null, data: GLint[], srcOffset?: number, srcLength?: GLuint): void;
40691
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
40692
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40693
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
40694
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40695
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
40696
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat[], srcOffset?: number, srcLength?: GLuint): void;
40697
+ }
40698
+
40699
+ interface WebGLRenderingContextBase {
40700
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
40701
+ vertexAttrib1fv(index: GLuint, values: GLfloat[]): void;
40702
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
40703
+ vertexAttrib2fv(index: GLuint, values: GLfloat[]): void;
40704
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
40705
+ vertexAttrib3fv(index: GLuint, values: GLfloat[]): void;
40706
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
40707
+ vertexAttrib4fv(index: GLuint, values: GLfloat[]): void;
40708
+ }
40709
+
40710
+ interface WebGLRenderingContextOverloads {
40711
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40712
+ uniform1fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
40713
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40714
+ uniform1iv(location: WebGLUniformLocation | null, v: GLint[]): void;
40715
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40716
+ uniform2fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
40717
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40718
+ uniform2iv(location: WebGLUniformLocation | null, v: GLint[]): void;
40719
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40720
+ uniform3fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
40721
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40722
+ uniform3iv(location: WebGLUniformLocation | null, v: GLint[]): void;
40723
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40724
+ uniform4fv(location: WebGLUniformLocation | null, v: GLfloat[]): void;
40725
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
40726
+ uniform4iv(location: WebGLUniformLocation | null, v: GLint[]): void;
40727
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
40728
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
40729
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
40730
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
40731
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
40732
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat[]): void;
40733
+ }
40734
+
40735
+
40736
+ /////////////////////////////
40737
+ /// Window Async Iterable APIs
40738
+ /////////////////////////////
40739
+
40740
+ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
40741
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
40742
+ }
40743
+
40744
+ interface FileSystemDirectoryHandle {
40745
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
40746
+ entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
40747
+ keys(): FileSystemDirectoryHandleAsyncIterator<string>;
40748
+ values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
40749
+ }
40750
+
40751
+ interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
40752
+ [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
40753
+ }
40754
+
40755
+ interface ReadableStream<R = any> {
40756
+ [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
40757
+ values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
40758
+ }