From 19270ba0f966d2edcfd6ab4aaa80f7d00efccd70 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 25 Feb 2026 15:14:44 -0800 Subject: [PATCH] [experiment] merge iterable decls in DOM --- src/lib/dom.generated.d.ts | 1011 ++++------------- src/lib/webworker.generated.d.ts | 670 +++-------- .../checkJsxChildrenCanBeTupleType.types | 2 +- ...contextualOverloadListFromArrayUnion.types | 4 +- .../contextuallyTypedJsxChildren.types | 2 +- .../divergentAccessorsTypes6.symbols | 2 +- .../divergentAccessorsTypes8.symbols | 2 +- .../baselines/reference/jsxElementType.types | 2 +- .../jsxFragmentFactoryNoUnusedLocals.types | 2 +- ...estedSelfClosingChild(jsx=react-jsx).types | 2 +- ...edSelfClosingChild(jsx=react-jsxdev).types | 2 +- .../jsxRuntimePragma(jsx=preserve).types | 2 +- .../jsxRuntimePragma(jsx=react).types | 2 +- .../jsxRuntimePragma(jsx=react-jsx).types | 2 +- .../jsxRuntimePragma(jsx=react-jsxdev).types | 2 +- .../modularizeLibrary_Worker.iterable.symbols | 2 +- .../reference/objectFromEntries.symbols | 2 +- .../reference/objectFromEntries.types | 4 +- ...leFilesWithFileEndingWithInterface.symbols | 2 +- .../truthinessCallExpressionCoercion2.types | 16 +- ...ctEmitSpreadAttribute(target=es2018).types | 2 +- .../typedArrays-es5(target=es2015).symbols | 2 +- .../typedArrays-es5(target=es5).symbols | 2 +- .../reference/typedArrays-es6.symbols | 2 +- .../reference/webworkerIterable.symbols | 2 +- 25 files changed, 436 insertions(+), 1309 deletions(-) diff --git a/src/lib/dom.generated.d.ts b/src/lib/dom.generated.d.ts index 4529183fb399a..4f3831ac01fb9 100644 --- a/src/lib/dom.generated.d.ts +++ b/src/lib/dom.generated.d.ts @@ -1182,7 +1182,7 @@ interface GamepadEffectParameters { } interface GamepadEventInit extends EventInit { - gamepad: Gamepad; + gamepad?: Gamepad | null; } interface GetAnimationsOptions { @@ -3403,7 +3403,7 @@ declare var AbortSignal: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: AbortSignal[]): AbortSignal; + any(signals: Iterable): AbortSignal; /** * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time. * @@ -4512,7 +4512,7 @@ interface AudioParam { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ - setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; + setValueCurveAtTime(values: Iterable, startTime: number, duration: number): AudioParam; } declare var AudioParam: { @@ -4525,7 +4525,7 @@ declare var AudioParam: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ -interface AudioParamMap { +interface AudioParamMap extends ReadonlyMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } @@ -4890,7 +4890,7 @@ interface BaseAudioContext extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ - createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; + createIIRFilter(feedforward: Iterable, feedback: Iterable): IIRFilterNode; /** * The **`createOscillator()`** method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform. It basically generates a constant tone. * @@ -4908,7 +4908,7 @@ interface BaseAudioContext extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ - createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; + createPeriodicWave(real: Iterable, imag: Iterable, constraints?: PeriodicWaveConstraints): PeriodicWave; /** * The **`createScriptProcessor()`** method of the BaseAudioContext interface creates a ScriptProcessorNode used for direct audio processing. * @deprecated @@ -5066,7 +5066,7 @@ interface Blob { declare var Blob: { prototype: Blob; - new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; + new(blobParts?: Iterable, options?: BlobPropertyBag): Blob; }; /** @@ -5358,13 +5358,13 @@ declare var CSSFontFaceRule: { }; /** - * The **`CSSFontFeatureValuesRule`** interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates. + * The **`CSSFontFeatureValuesRule`** interface represents an @font-feature-values at-rule. The values of its instance properties can be accessed with the CSSFontFeatureValuesMap interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { /** - * The **`fontFamily`** property of the CSSConditionRule interface represents the name of the font family it applies to. + * The **`fontFamily`** property of the CSSFontFeatureValuesRule interface represents the name of the font family it applies to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ @@ -5570,6 +5570,7 @@ interface CSSKeyframesRule extends CSSRule { */ findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; + [Symbol.iterator](): ArrayIterator; } declare var CSSKeyframesRule: { @@ -5876,6 +5877,10 @@ interface CSSNumericArray { readonly length: number; forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; [index: number]: CSSNumericValue; + [Symbol.iterator](): ArrayIterator; + entries(): ArrayIterator<[number, CSSNumericValue]>; + keys(): ArrayIterator; + values(): ArrayIterator; } declare var CSSNumericArray: { @@ -6377,6 +6382,7 @@ interface CSSRuleList { */ item(index: number): CSSRule | null; [index: number]: CSSRule; + [Symbol.iterator](): ArrayIterator; } declare var CSSRuleList: { @@ -6571,6 +6577,7 @@ interface CSSStyleDeclarationBase { */ setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; + [Symbol.iterator](): ArrayIterator; } interface CSSStyleDeclaration extends CSSStyleProperties { @@ -6815,6 +6822,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size) */ backgroundSize: string; + /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */ baselineShift: string; /** * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. @@ -9966,11 +9974,15 @@ interface CSSTransformValue extends CSSStyleValue { toMatrix(): DOMMatrix; forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; [index: number]: CSSTransformComponent; + [Symbol.iterator](): ArrayIterator; + entries(): ArrayIterator<[number, CSSTransformComponent]>; + keys(): ArrayIterator; + values(): ArrayIterator; } declare var CSSTransformValue: { prototype: CSSTransformValue; - new(transforms: CSSTransformComponent[]): CSSTransformValue; + new(transforms: Iterable): CSSTransformValue; }; /** @@ -10066,11 +10078,15 @@ interface CSSUnparsedValue extends CSSStyleValue { readonly length: number; forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; [index: number]: CSSUnparsedSegment; + [Symbol.iterator](): ArrayIterator; + entries(): ArrayIterator<[number, CSSUnparsedSegment]>; + keys(): ArrayIterator; + values(): ArrayIterator; } declare var CSSUnparsedValue: { prototype: CSSUnparsedValue; - new(members: CSSUnparsedSegment[]): CSSUnparsedValue; + new(members: Iterable): CSSUnparsedValue; }; /** @@ -10141,7 +10157,7 @@ interface Cache { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ - addAll(requests: RequestInfo[]): Promise; + addAll(requests: Iterable): Promise; /** * The **`delete()`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true. If no Cache entry is found, it resolves to false. * @@ -10363,7 +10379,7 @@ interface CanvasPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ rect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ - roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; + roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable): void; } interface CanvasPathDrawingStyles { @@ -10380,7 +10396,7 @@ interface CanvasPathDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ getLineDash(): number[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ - setLineDash(segments: number[]): void; + setLineDash(segments: Iterable): void; } /** @@ -11036,13 +11052,13 @@ interface CookieStoreManager { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) */ - subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + subscribe(subscriptions: Iterable): Promise; /** * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) */ - unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; + unsubscribe(subscriptions: Iterable): Promise; } declare var CookieStoreManager: { @@ -11281,7 +11297,7 @@ declare var CustomEvent: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ -interface CustomStateSet { +interface CustomStateSet extends Set { forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void; } @@ -11536,7 +11552,7 @@ interface DOMMatrix extends DOMMatrixReadOnly { declare var DOMMatrix: { prototype: DOMMatrix; - new(init?: string | number[]): DOMMatrix; + new(init?: string | Iterable): DOMMatrix; /** * The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values. * @@ -11728,7 +11744,7 @@ interface DOMMatrixReadOnly { declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; - new(init?: string | number[]): DOMMatrixReadOnly; + new(init?: string | Iterable): DOMMatrixReadOnly; /** * The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values. * @@ -11995,6 +12011,7 @@ interface DOMRectList { */ item(index: number): DOMRect | null; [index: number]: DOMRect; + [Symbol.iterator](): ArrayIterator; } declare var DOMRectList: { @@ -12100,6 +12117,7 @@ interface DOMStringList { */ item(index: number): string | null; [index: number]: string; + [Symbol.iterator](): ArrayIterator; } declare var DOMStringList: { @@ -12184,6 +12202,10 @@ interface DOMTokenList { toggle(token: string, force?: boolean): boolean; forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; [index: number]: string; + [Symbol.iterator](): ArrayIterator; + entries(): ArrayIterator<[number, string]>; + keys(): ArrayIterator; + values(): ArrayIterator; } declare var DOMTokenList: { @@ -12333,6 +12355,7 @@ interface DataTransferItemList { */ remove(index: number): void; [index: number]: DataTransferItem; + [Symbol.iterator](): ArrayIterator; } declare var DataTransferItemList: { @@ -14271,7 +14294,7 @@ declare var Event: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ -interface EventCounts { +interface EventCounts extends ReadonlyMap { forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; } @@ -14422,7 +14445,7 @@ interface File extends Blob { declare var File: { prototype: File; - new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; + new(fileBits: Iterable, fileName: string, options?: FilePropertyBag): File; }; /** @@ -14444,6 +14467,7 @@ interface FileList { */ item(index: number): File | null; [index: number]: File; + [Symbol.iterator](): ArrayIterator; } declare var FileList: { @@ -14600,6 +14624,10 @@ declare var FileSystemDirectoryEntry: { new(): FileSystemDirectoryEntry; }; + +interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { + [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; +} /** * The **`FileSystemDirectoryHandle`** interface of the File System API provides a handle to a file system directory. * Available only in secure contexts. @@ -14632,6 +14660,10 @@ interface FileSystemDirectoryHandle extends FileSystemHandle { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; + [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; + entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; + keys(): FileSystemDirectoryHandleAsyncIterator; + values(): FileSystemDirectoryHandleAsyncIterator; } declare var FileSystemDirectoryHandle: { @@ -14944,7 +14976,7 @@ interface FontFaceSetEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ -interface FontFaceSet extends EventTarget { +interface FontFaceSet extends EventTarget, Set { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ @@ -15011,6 +15043,10 @@ interface FontFaceSource { readonly fonts: FontFaceSet; } + +interface FormDataIterator extends IteratorObject { + [Symbol.iterator](): FormDataIterator; +} /** * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods. It uses the same format a form would use if the encoding type were set to "multipart/form-data". * @@ -15058,6 +15094,13 @@ interface FormData { set(name: string, value: string): void; set(name: string, blobValue: Blob, filename?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; + [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): FormDataIterator<[string, FormDataEntryValue]>; + /** Returns a list of keys in the list. */ + keys(): FormDataIterator; + /** Returns a list of values in the list. */ + values(): FormDataIterator; } declare var FormData: { @@ -15253,7 +15296,7 @@ declare var GPUBindGroupLayout: { interface GPUBindingCommandsMixin { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */ - setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void; + setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable): void; setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void; } @@ -15408,19 +15451,19 @@ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) */ - copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void; + copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) */ - copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void; + copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) */ - copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void; + copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer. * @@ -15909,7 +15952,7 @@ interface GPUQueue extends GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) */ - copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void; + copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed. * @@ -15921,7 +15964,7 @@ interface GPUQueue extends GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) */ - submit(commandBuffers: GPUCommandBuffer[]): void; + submit(commandBuffers: Iterable): void; /** * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer. * @@ -15933,7 +15976,7 @@ interface GPUQueue extends GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) */ - writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void; + writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D | Iterable): void; } declare var GPUQueue: { @@ -16022,13 +16065,13 @@ interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommands * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) */ - executeBundles(bundles: GPURenderBundle[]): void; + executeBundles(bundles: Iterable): void; /** * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) */ - setBlendConstant(color: GPUColor): void; + setBlendConstant(color: GPUColor | Iterable): void; /** * The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded. * @@ -16108,7 +16151,7 @@ declare var GPUShaderModule: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) */ -interface GPUSupportedFeatures { +interface GPUSupportedFeatures extends ReadonlySet { forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; } @@ -16442,7 +16485,7 @@ interface GamepadEvent extends Event { declare var GamepadEvent: { prototype: GamepadEvent; - new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; + new(type: string, eventInitDict?: GamepadEventInit): GamepadEvent; }; /** @@ -17000,6 +17043,7 @@ interface HTMLAllCollection { */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; + [Symbol.iterator](): ArrayIterator; } declare var HTMLAllCollection: { @@ -17473,6 +17517,7 @@ interface HTMLCollectionBase { */ item(index: number): Element | null; [index: number]: Element; + [Symbol.iterator](): ArrayIterator; } interface HTMLCollection extends HTMLCollectionBase { @@ -17493,6 +17538,7 @@ interface HTMLCollectionOf extends HTMLCollectionBase { item(index: number): T | null; namedItem(name: string): T | null; [index: number]: T; + [Symbol.iterator](): ArrayIterator; } /** @@ -18191,6 +18237,7 @@ interface HTMLFormElement extends HTMLElement { removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [index: number]: Element; [name: string]: any; + [Symbol.iterator](): ArrayIterator; } declare var HTMLFormElement: { @@ -20615,6 +20662,7 @@ interface HTMLSelectElement extends HTMLElement { removeEventListener(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [name: number]: HTMLOptionElement | HTMLOptGroupElement; + [Symbol.iterator](): ArrayIterator; } declare var HTMLSelectElement: { @@ -21799,6 +21847,10 @@ declare var HashChangeEvent: { new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; }; + +interface HeadersIterator extends IteratorObject { + [Symbol.iterator](): HeadersIterator; +} /** * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing headers from the list of the request's headers. * @@ -21842,11 +21894,18 @@ interface Headers { */ set(name: string, value: string): void; forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; + [Symbol.iterator](): HeadersIterator<[string, string]>; + /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ + entries(): HeadersIterator<[string, string]>; + /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ + keys(): HeadersIterator; + /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ + values(): HeadersIterator; } declare var Headers: { prototype: Headers; - new(init?: HeadersInit): Headers; + new(init?: HeadersInit | Iterable<[string, string]>): Headers; }; /** @@ -21854,7 +21913,7 @@ declare var Headers: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ -interface Highlight { +interface Highlight extends Set { /** * The **`priority`** property of the Highlight interface is a number used to determine which highlight's styles should be used to resolve style conflicts in overlapping parts. Highlights with a higher priority number have preference over those with a lower priority. * @@ -21880,7 +21939,7 @@ declare var Highlight: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ -interface HighlightRegistry { +interface HighlightRegistry extends Map { forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void; } @@ -22103,7 +22162,7 @@ interface IDBDatabase extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) */ - transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; + transaction(storeNames: string | Iterable, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; addEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -22363,7 +22422,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) */ - createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; + createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; /** * The **`delete()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, deletes the specified record or records. * @@ -22929,6 +22988,7 @@ interface ImageTrackList { */ readonly selectedTrack: ImageTrack | null; [index: number]: ImageTrack; + [Symbol.iterator](): ArrayIterator; } declare var ImageTrackList: { @@ -23578,7 +23638,7 @@ declare var MIDIInput: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap) */ -interface MIDIInputMap { +interface MIDIInputMap extends ReadonlyMap { forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void; } @@ -23619,7 +23679,7 @@ interface MIDIOutput extends MIDIPort { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ - send(data: number[], timestamp?: DOMHighResTimeStamp): void; + send(data: Iterable, timestamp?: DOMHighResTimeStamp): void; addEventListener(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -23637,7 +23697,7 @@ declare var MIDIOutput: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap) */ -interface MIDIOutputMap { +interface MIDIOutputMap extends ReadonlyMap { forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void; } @@ -24045,6 +24105,10 @@ declare var MediaKeySession: { new(): MediaKeySession; }; + +interface MediaKeyStatusMapIterator extends IteratorObject { + [Symbol.iterator](): MediaKeyStatusMapIterator; +} /** * The **`MediaKeyStatusMap`** interface of the Encrypted Media Extensions API is a read-only map of media key statuses by key IDs. * Available only in secure contexts. @@ -24071,6 +24135,10 @@ interface MediaKeyStatusMap { */ has(keyId: BufferSource): boolean; forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void; + [Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>; + entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>; + keys(): MediaKeyStatusMapIterator; + values(): MediaKeyStatusMapIterator; } declare var MediaKeyStatusMap: { @@ -24180,6 +24248,7 @@ interface MediaList { */ item(index: number): string | null; [index: number]: string; + [Symbol.iterator](): ArrayIterator; } declare var MediaList: { @@ -24638,7 +24707,7 @@ declare var MediaStream: { prototype: MediaStream; new(): MediaStream; new(stream: MediaStream): MediaStream; - new(tracks: MediaStreamTrack[]): MediaStream; + new(tracks: Iterable): MediaStream; }; /** @@ -24867,7 +24936,7 @@ interface MessageEvent extends Event { */ readonly source: MessageEventSource | null; /** @deprecated */ - initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; + initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; } declare var MessageEvent: { @@ -24981,6 +25050,7 @@ interface MimeTypeArray { /** @deprecated */ namedItem(name: string): MimeType | null; [index: number]: MimeType; + [Symbol.iterator](): ArrayIterator; } /** @deprecated */ @@ -25294,6 +25364,7 @@ interface NamedNodeMap { */ setNamedItemNS(attr: Attr): Attr | null; [index: number]: Attr; + [Symbol.iterator](): ArrayIterator; } declare var NamedNodeMap: { @@ -25866,7 +25937,7 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, Navi * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) */ - requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise; + requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable): Promise; /** * The **`navigator.sendBeacon()`** method asynchronously sends an HTTP POST request containing a small amount of data to a web server. * @@ -25885,7 +25956,7 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, Navi * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */ - vibrate(pattern: VibratePattern): boolean; + vibrate(pattern: VibratePattern | Iterable): boolean; } declare var Navigator: { @@ -26341,6 +26412,13 @@ interface NodeList { item(index: number): Node | null; forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void; [index: number]: Node; + [Symbol.iterator](): ArrayIterator; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): ArrayIterator<[number, Node]>; + /** Returns an list of keys in the list. */ + keys(): ArrayIterator; + /** Returns an list of values in the list. */ + values(): ArrayIterator; } declare var NodeList: { @@ -26352,6 +26430,13 @@ interface NodeListOf extends NodeList { item(index: number): TNode; forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf) => void, thisArg?: any): void; [index: number]: TNode; + [Symbol.iterator](): ArrayIterator; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): ArrayIterator<[number, TNode]>; + /** Returns an list of keys in the list. */ + keys(): ArrayIterator; + /** Returns an list of values in the list. */ + values(): ArrayIterator; } interface NonDocumentTypeChildNode { @@ -27297,7 +27382,7 @@ interface PaymentRequest extends EventTarget { declare var PaymentRequest: { prototype: PaymentRequest; - new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest; + new(methodData: Iterable, details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest; }; /** @@ -28366,6 +28451,7 @@ interface Plugin { /** @deprecated */ namedItem(name: string): MimeType | null; [index: number]: MimeType; + [Symbol.iterator](): ArrayIterator; } /** @deprecated */ @@ -28390,6 +28476,7 @@ interface PluginArray { /** @deprecated */ refresh(): void; [index: number]: Plugin; + [Symbol.iterator](): ArrayIterator; } /** @deprecated */ @@ -29728,7 +29815,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(worker: Worker, options?: any, transfer?: Iterable): RTCRtpScriptTransform; }; /** @@ -29845,7 +29932,7 @@ interface RTCRtpTransceiver { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ - setCodecPreferences(codecs: RTCRtpCodec[]): void; + setCodecPreferences(codecs: Iterable): void; /** * The **`stop()`** method in the RTCRtpTransceiver interface permanently stops the transceiver by stopping both the associated RTCRtpSender and RTCRtpReceiver. * @@ -29942,7 +30029,7 @@ declare var RTCSessionDescription: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ -interface RTCStatsReport { +interface RTCStatsReport extends ReadonlyMap { forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; } @@ -30217,6 +30304,10 @@ declare var ReadableByteStreamController: { new(): ReadableByteStreamController; }; + +interface ReadableStreamAsyncIterator extends AsyncIteratorObject { + [Symbol.asyncIterator](): ReadableStreamAsyncIterator; +} /** * The **`ReadableStream`** interface of the Streams API represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. * @@ -30261,6 +30352,8 @@ interface ReadableStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */ tee(): [ReadableStream, ReadableStream]; + [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; + values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; } declare var ReadableStream: { @@ -30349,7 +30442,7 @@ interface ReadableStreamDefaultController { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */ - enqueue(chunk?: R): void; + enqueue(chunk: R): void; /** * The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error. * @@ -32993,6 +33086,7 @@ interface SVGLengthList { */ replaceItem(newItem: SVGLength, index: number): SVGLength; [index: number]: SVGLength; + [Symbol.iterator](): ArrayIterator; } declare var SVGLengthList: { @@ -33334,6 +33428,7 @@ interface SVGNumberList { */ replaceItem(newItem: SVGNumber, index: number): SVGNumber; [index: number]: SVGNumber; + [Symbol.iterator](): ArrayIterator; } declare var SVGNumberList: { @@ -33496,6 +33591,7 @@ interface SVGPointList { */ replaceItem(newItem: DOMPoint, index: number): DOMPoint; [index: number]: DOMPoint; + [Symbol.iterator](): ArrayIterator; } declare var SVGPointList: { @@ -33988,6 +34084,7 @@ interface SVGStringList { */ replaceItem(newItem: string, index: number): string; [index: number]: string; + [Symbol.iterator](): ArrayIterator; } declare var SVGStringList: { @@ -34462,6 +34559,7 @@ interface SVGTransformList { */ replaceItem(newItem: SVGTransform, index: number): SVGTransform; [index: number]: SVGTransform; + [Symbol.iterator](): ArrayIterator; } declare var SVGTransformList: { @@ -35321,7 +35419,7 @@ declare var ShadowRoot: { }; /** - * The **`SharedWorker`** interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows, iframes or even workers. They implement an interface different than dedicated workers and have a different global scope, SharedWorkerGlobalScope. + * The **`SharedWorker`** interface represents a specific kind of worker that can be accessed from several browsing contexts, such as multiple windows or iframes. Shared workers implement a different interface than dedicated workers, have a different global scope (SharedWorkerGlobalScope), and their constructor is not exposed in DedicatedWorkerGlobalScope, so they cannot be instantiated from dedicated workers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */ @@ -35467,6 +35565,7 @@ interface SourceBufferList extends EventTarget { removeEventListener(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [index: number]: SourceBuffer; + [Symbol.iterator](): ArrayIterator; } declare var SourceBufferList: { @@ -35578,6 +35677,7 @@ interface SpeechRecognitionResult { */ item(index: number): SpeechRecognitionAlternative; [index: number]: SpeechRecognitionAlternative; + [Symbol.iterator](): ArrayIterator; } declare var SpeechRecognitionResult: { @@ -35605,6 +35705,7 @@ interface SpeechRecognitionResultList { */ item(index: number): SpeechRecognitionResult; [index: number]: SpeechRecognitionResult; + [Symbol.iterator](): ArrayIterator; } declare var SpeechRecognitionResultList: { @@ -36072,6 +36173,10 @@ declare var StylePropertyMap: { new(): StylePropertyMap; }; + +interface StylePropertyMapReadOnlyIterator extends IteratorObject { + [Symbol.iterator](): StylePropertyMapReadOnlyIterator; +} /** * The **`StylePropertyMapReadOnly`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. Retrieve an instance of this interface using Element.computedStyleMap(). * @@ -36103,6 +36208,10 @@ interface StylePropertyMapReadOnly { */ has(property: string): boolean; forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void; + [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>; + entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>; + keys(): StylePropertyMapReadOnlyIterator; + values(): StylePropertyMapReadOnlyIterator; } declare var StylePropertyMapReadOnly: { @@ -36185,6 +36294,7 @@ interface StyleSheetList { */ item(index: number): CSSStyleSheet | null; [index: number]: CSSStyleSheet; + [Symbol.iterator](): ArrayIterator; } declare var StyleSheetList: { @@ -36235,7 +36345,7 @@ interface SubtleCrypto { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ - deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; + deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable): Promise; /** * The **`digest()`** method of the SubtleCrypto interface generates a digest of the given data, using the specified hash function. A digest is a short fixed-length value derived from some variable-length input. Cryptographic digests should exhibit collision-resistance, meaning that it's hard to come up with two different inputs that have the same digest value. * @@ -36265,14 +36375,14 @@ interface SubtleCrypto { generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise; + generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable): Promise; /** * 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray): Promise; - importKey(format: Exclude, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise; + importKey(format: Exclude, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; /** * The **`sign()`** method of the SubtleCrypto interface generates a digital signature. * @@ -36284,7 +36394,7 @@ interface SubtleCrypto { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ - unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise; + unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; /** * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature. * @@ -36374,7 +36484,7 @@ declare var TaskSignal: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/any_static) */ - any(signals: AbortSignal[], init?: TaskSignalAnyInit): TaskSignal; + any(signals: Iterable, init?: TaskSignalAnyInit): TaskSignal; }; /** @@ -36782,6 +36892,7 @@ interface TextTrackCueList { */ getCueById(id: string): TextTrackCue | null; [index: number]: TextTrackCue; + [Symbol.iterator](): ArrayIterator; } declare var TextTrackCueList: { @@ -36824,6 +36935,7 @@ interface TextTrackList extends EventTarget { removeEventListener(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [index: number]: TextTrack; + [Symbol.iterator](): ArrayIterator; } declare var TextTrackList: { @@ -37052,6 +37164,7 @@ interface TouchList { */ item(index: number): Touch | null; [index: number]: Touch; + [Symbol.iterator](): ArrayIterator; } declare var TouchList: { @@ -37488,6 +37601,10 @@ declare var URLPattern: { new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern; }; + +interface URLSearchParamsIterator extends IteratorObject { + [Symbol.iterator](): URLSearchParamsIterator; +} /** * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL. * @@ -37544,11 +37661,18 @@ interface URLSearchParams { sort(): void; toString(): string; forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; + [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; + /** Returns an array of key, value pairs for every entry in the search params. */ + entries(): URLSearchParamsIterator<[string, string]>; + /** Returns a list of keys in the search params. */ + keys(): URLSearchParamsIterator; + /** Returns a list of values in the search params. */ + values(): URLSearchParamsIterator; } declare var URLSearchParams: { prototype: URLSearchParams; - new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; + new(init?: Iterable | Record | string): URLSearchParams; }; /** @@ -38161,7 +38285,7 @@ declare var ViewTransition: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransitionTypeSet) */ -interface ViewTransitionTypeSet { +interface ViewTransitionTypeSet extends Set { forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void; } @@ -38398,7 +38522,7 @@ interface WEBGL_draw_buffers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ - drawBuffersWEBGL(buffers: GLenum[]): void; + drawBuffersWEBGL(buffers: Iterable): void; readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0; readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1; readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2; @@ -38466,25 +38590,25 @@ interface WEBGL_multi_draw { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ - multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; /** * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ - multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void; + multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, drawcount: GLsizei): void; /** * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ - multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; /** * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ - multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; + multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } /** @@ -38493,7 +38617,7 @@ interface WEBGL_multi_draw { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) */ -interface WGSLLanguageFeatures { +interface WGSLLanguageFeatures extends ReadonlySet { forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; } @@ -39181,11 +39305,11 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void; + clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List | Iterable, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void; + clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List | Iterable, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void; + clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List | Iterable, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */ @@ -39219,7 +39343,7 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */ drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ - drawBuffers(buffers: GLenum[]): void; + drawBuffers(buffers: Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */ drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */ @@ -39237,7 +39361,7 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */ getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ - getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; + getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable, pname: GLenum): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */ getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ @@ -39259,11 +39383,11 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */ getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ - getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null; + getUniformIndices(program: WebGLProgram, uniformNames: Iterable): GLuint[] | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ - invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; + invalidateFramebuffer(target: GLenum, attachments: Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ - invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + invalidateSubFramebuffer(target: GLenum, attachments: Iterable, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */ isQuery(query: WebGLQuery | null): GLboolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */ @@ -39300,47 +39424,47 @@ interface WebGL2RenderingContextBase { texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ - transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; + transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable, bufferMode: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ vertexAttribDivisor(index: GLuint, divisor: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4iv(index: GLuint, values: Int32List): void; + vertexAttribI4iv(index: GLuint, values: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4uiv(index: GLuint, values: Uint32List): void; + vertexAttribI4uiv(index: GLuint, values: Uint32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */ vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */ @@ -39640,27 +39764,27 @@ interface WebGL2RenderingContextOverloads { texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform1fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform1iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform2fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform2iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform3fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform3iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform4fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform4iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; } /** @@ -40352,19 +40476,19 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib1f(index: GLuint, x: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib1fv(index: GLuint, values: Float32List): void; + vertexAttrib1fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib2fv(index: GLuint, values: Float32List): void; + vertexAttrib2fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib3fv(index: GLuint, values: Float32List): void; + vertexAttrib3fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib4fv(index: GLuint, values: Float32List): void; + vertexAttrib4fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */ vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */ @@ -40687,27 +40811,27 @@ interface WebGLRenderingContextOverloads { texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform1fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform1iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform2fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform2iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform3fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform3iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform4fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform4iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List | Iterable): void; } /** @@ -40917,7 +41041,7 @@ interface WebSocket extends EventTarget { declare var WebSocket: { prototype: WebSocket; - new(url: string | URL, protocols?: string | string[]): WebSocket; + new(url: string | URL, protocols?: string | Iterable): WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; @@ -42513,7 +42637,7 @@ declare namespace WebAssembly { var Exception: { prototype: Exception; - new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + new(exceptionTag: Tag, payload: Iterable, options?: ExceptionOptions): Exception; }; /** @@ -42850,7 +42974,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ - table(tabularData?: any, properties?: string[]): void; + table(tabularData?: any, properties?: Iterable): void; /** * The **`console.time()`** static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started. * @@ -42924,7 +43048,7 @@ interface FileCallback { } interface FileSystemEntriesCallback { - (entries: FileSystemEntry[]): void; + (entries: Iterable): void; } interface FileSystemEntryCallback { @@ -42944,7 +43068,7 @@ interface IdleRequestCallback { } interface IntersectionObserverCallback { - (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void; + (entries: Iterable, observer: IntersectionObserver): void; } interface LockGrantedCallback { @@ -42956,7 +43080,7 @@ interface MediaSessionActionHandler { } interface MutationCallback { - (mutations: MutationRecord[], observer: MutationObserver): void; + (mutations: Iterable, observer: MutationObserver): void; } interface NavigationInterceptHandler { @@ -43008,11 +43132,11 @@ interface RemotePlaybackAvailabilityCallback { } interface ReportingObserverCallback { - (reports: Report[], observer: ReportingObserver): void; + (reports: Iterable, observer: ReportingObserver): void; } interface ResizeObserverCallback { - (entries: ResizeObserverEntry[], observer: ResizeObserver): void; + (entries: Iterable, observer: ResizeObserver): void; } interface SchedulerPostTaskCallback { @@ -44457,652 +44581,3 @@ type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; - - -///////////////////////////// -/// Window Iterable APIs -///////////////////////////// - -interface AudioParam { - /** - * The **`setValueCurveAtTime()`** method of the AudioParam interface schedules the parameter's value to change following a curve defined by a list of values. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) - */ - setValueCurveAtTime(values: Iterable, startTime: number, duration: number): AudioParam; -} - -interface AudioParamMap extends ReadonlyMap { -} - -interface BaseAudioContext { - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) - */ - createIIRFilter(feedforward: Iterable, feedback: Iterable): IIRFilterNode; - /** - * The **`createPeriodicWave()`** method of the BaseAudioContext interface is used to create a PeriodicWave. This wave is used to define a periodic waveform that can be used to shape the output of an OscillatorNode. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) - */ - createPeriodicWave(real: Iterable, imag: Iterable, constraints?: PeriodicWaveConstraints): PeriodicWave; -} - -interface CSSKeyframesRule { - [Symbol.iterator](): ArrayIterator; -} - -interface CSSNumericArray { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSNumericValue]>; - keys(): ArrayIterator; - values(): ArrayIterator; -} - -interface CSSRuleList { - [Symbol.iterator](): ArrayIterator; -} - -interface CSSStyleDeclaration { - [Symbol.iterator](): ArrayIterator; -} - -interface CSSTransformValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSTransformComponent]>; - keys(): ArrayIterator; - values(): ArrayIterator; -} - -interface CSSUnparsedValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSUnparsedSegment]>; - keys(): ArrayIterator; - values(): ArrayIterator; -} - -interface Cache { - /** - * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. The request objects created during retrieval become keys to the stored response operations. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) - */ - addAll(requests: Iterable): Promise; -} - -interface CanvasPath { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ - roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable): void; -} - -interface CanvasPathDrawingStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ - setLineDash(segments: Iterable): void; -} - -interface CookieStoreManager { - /** - * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) - */ - subscribe(subscriptions: Iterable): Promise; - /** - * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) - */ - unsubscribe(subscriptions: Iterable): Promise; -} - -interface CustomStateSet extends Set { -} - -interface DOMRectList { - [Symbol.iterator](): ArrayIterator; -} - -interface DOMStringList { - [Symbol.iterator](): ArrayIterator; -} - -interface DOMTokenList { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, string]>; - keys(): ArrayIterator; - values(): ArrayIterator; -} - -interface DataTransferItemList { - [Symbol.iterator](): ArrayIterator; -} - -interface EventCounts extends ReadonlyMap { -} - -interface FileList { - [Symbol.iterator](): ArrayIterator; -} - -interface FontFaceSet extends Set { -} - -interface FormDataIterator extends IteratorObject { - [Symbol.iterator](): FormDataIterator; -} - -interface FormData { - [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>; - /** Returns an array of key, value pairs for every entry in the list. */ - entries(): FormDataIterator<[string, FormDataEntryValue]>; - /** Returns a list of keys in the list. */ - keys(): FormDataIterator; - /** Returns a list of values in the list. */ - values(): FormDataIterator; -} - -interface GPUBindingCommandsMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */ - setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable): void; -} - -interface GPUCommandEncoder { - /** - * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) - */ - copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable): void; - /** - * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) - */ - copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable): void; - /** - * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) - */ - copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable): void; -} - -interface GPUQueue { - /** - * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) - */ - copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable): void; - /** - * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) - */ - submit(commandBuffers: Iterable): void; - /** - * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) - */ - writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable): void; -} - -interface GPURenderPassEncoder { - /** - * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) - */ - executeBundles(bundles: Iterable): void; - /** - * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) - */ - setBlendConstant(color: Iterable): void; -} - -interface GPUSupportedFeatures extends ReadonlySet { -} - -interface HTMLAllCollection { - [Symbol.iterator](): ArrayIterator; -} - -interface HTMLCollectionBase { - [Symbol.iterator](): ArrayIterator; -} - -interface HTMLCollectionOf { - [Symbol.iterator](): ArrayIterator; -} - -interface HTMLFormElement { - [Symbol.iterator](): ArrayIterator; -} - -interface HTMLSelectElement { - [Symbol.iterator](): ArrayIterator; -} - -interface HeadersIterator extends IteratorObject { - [Symbol.iterator](): HeadersIterator; -} - -interface Headers { - [Symbol.iterator](): HeadersIterator<[string, string]>; - /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ - entries(): HeadersIterator<[string, string]>; - /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ - keys(): HeadersIterator; - /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ - values(): HeadersIterator; -} - -interface Highlight extends Set { -} - -interface HighlightRegistry extends Map { -} - -interface IDBDatabase { - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) - */ - transaction(storeNames: string | Iterable, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; -} - -interface IDBObjectStore { - /** - * The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database. It creates a new field/column defining a new data point for each database record to contain. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) - */ - createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; -} - -interface ImageTrackList { - [Symbol.iterator](): ArrayIterator; -} - -interface MIDIInputMap extends ReadonlyMap { -} - -interface MIDIOutput { - /** - * The **`send()`** method of the MIDIOutput interface queues messages for the corresponding MIDI port. The message can be sent immediately, or with an optional timestamp to delay sending. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) - */ - send(data: Iterable, timestamp?: DOMHighResTimeStamp): void; -} - -interface MIDIOutputMap extends ReadonlyMap { -} - -interface MediaKeyStatusMapIterator extends IteratorObject { - [Symbol.iterator](): MediaKeyStatusMapIterator; -} - -interface MediaKeyStatusMap { - [Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>; - entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>; - keys(): MediaKeyStatusMapIterator; - values(): MediaKeyStatusMapIterator; -} - -interface MediaList { - [Symbol.iterator](): ArrayIterator; -} - -interface MessageEvent { - /** @deprecated */ - initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; -} - -interface MimeTypeArray { - [Symbol.iterator](): ArrayIterator; -} - -interface NamedNodeMap { - [Symbol.iterator](): ArrayIterator; -} - -interface Navigator { - /** - * 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. - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) - */ - requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable): Promise; - /** - * The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists. If the device doesn't support vibration, this method has no effect. If a vibration pattern is already in progress when this method is called, the previous pattern is halted and the new one begins instead. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) - */ - vibrate(pattern: Iterable): boolean; -} - -interface NodeList { - [Symbol.iterator](): ArrayIterator; - /** Returns an array of key, value pairs for every entry in the list. */ - entries(): ArrayIterator<[number, Node]>; - /** Returns an list of keys in the list. */ - keys(): ArrayIterator; - /** Returns an list of values in the list. */ - values(): ArrayIterator; -} - -interface NodeListOf { - [Symbol.iterator](): ArrayIterator; - /** Returns an array of key, value pairs for every entry in the list. */ - entries(): ArrayIterator<[number, TNode]>; - /** Returns an list of keys in the list. */ - keys(): ArrayIterator; - /** Returns an list of values in the list. */ - values(): ArrayIterator; -} - -interface Plugin { - [Symbol.iterator](): ArrayIterator; -} - -interface PluginArray { - [Symbol.iterator](): ArrayIterator; -} - -interface RTCRtpTransceiver { - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) - */ - setCodecPreferences(codecs: Iterable): void; -} - -interface RTCStatsReport extends ReadonlyMap { -} - -interface SVGLengthList { - [Symbol.iterator](): ArrayIterator; -} - -interface SVGNumberList { - [Symbol.iterator](): ArrayIterator; -} - -interface SVGPointList { - [Symbol.iterator](): ArrayIterator; -} - -interface SVGStringList { - [Symbol.iterator](): ArrayIterator; -} - -interface SVGTransformList { - [Symbol.iterator](): ArrayIterator; -} - -interface SourceBufferList { - [Symbol.iterator](): ArrayIterator; -} - -interface SpeechRecognitionResult { - [Symbol.iterator](): ArrayIterator; -} - -interface SpeechRecognitionResultList { - [Symbol.iterator](): ArrayIterator; -} - -interface StylePropertyMapReadOnlyIterator extends IteratorObject { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator; -} - -interface StylePropertyMapReadOnly { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - entries(): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - keys(): StylePropertyMapReadOnlyIterator; - values(): StylePropertyMapReadOnlyIterator>; -} - -interface StyleSheetList { - [Symbol.iterator](): ArrayIterator; -} - -interface SubtleCrypto { - /** - * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) - */ - deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable): Promise; - /** - * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) - */ - generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; - generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise; - generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable): Promise; - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) - */ - importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray): Promise; - importKey(format: Exclude, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; - /** - * The **`unwrapKey()`** method of the SubtleCrypto interface "unwraps" a key. This means that it takes as its input a key that has been exported and then encrypted (also called "wrapped"). It decrypts the key and then imports it, returning a CryptoKey object that can be used in the Web Crypto API. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) - */ - unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; -} - -interface TextTrackCueList { - [Symbol.iterator](): ArrayIterator; -} - -interface TextTrackList { - [Symbol.iterator](): ArrayIterator; -} - -interface TouchList { - [Symbol.iterator](): ArrayIterator; -} - -interface URLSearchParamsIterator extends IteratorObject { - [Symbol.iterator](): URLSearchParamsIterator; -} - -interface URLSearchParams { - [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; - /** Returns an array of key, value pairs for every entry in the search params. */ - entries(): URLSearchParamsIterator<[string, string]>; - /** Returns a list of keys in the search params. */ - keys(): URLSearchParamsIterator; - /** Returns a list of values in the search params. */ - values(): URLSearchParamsIterator; -} - -interface ViewTransitionTypeSet extends Set { -} - -interface WEBGL_draw_buffers { - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) - */ - drawBuffersWEBGL(buffers: Iterable): void; -} - -interface WEBGL_multi_draw { - /** - * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArraysInstanced() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) - */ - multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; - /** - * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) - */ - multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, drawcount: GLsizei): void; - /** - * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) - */ - multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; - /** - * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) - */ - multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; -} - -interface WGSLLanguageFeatures extends ReadonlySet { -} - -interface WebGL2RenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ - drawBuffers(buffers: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ - getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ - getUniformIndices(program: WebGLProgram, uniformNames: Iterable): GLuint[] | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ - invalidateFramebuffer(target: GLenum, attachments: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ - invalidateSubFramebuffer(target: GLenum, attachments: Iterable, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ - transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable, bufferMode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform1uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform2uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform3uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform4uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4iv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4uiv(index: GLuint, values: Iterable): void; -} - -interface WebGL2RenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; -} - -interface WebGLRenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib1fv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib2fv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib3fv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib4fv(index: GLuint, values: Iterable): void; -} - -interface WebGLRenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; -} - - -///////////////////////////// -/// Window Async Iterable APIs -///////////////////////////// - -interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; -} - -interface FileSystemDirectoryHandle { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; - entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; - keys(): FileSystemDirectoryHandleAsyncIterator; - values(): FileSystemDirectoryHandleAsyncIterator; -} - -interface ReadableStreamAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; -} - -interface ReadableStream { - [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; - values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; -} diff --git a/src/lib/webworker.generated.d.ts b/src/lib/webworker.generated.d.ts index ae16e24eb0694..b023b657d1447 100644 --- a/src/lib/webworker.generated.d.ts +++ b/src/lib/webworker.generated.d.ts @@ -1594,7 +1594,7 @@ declare var AbortSignal: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: AbortSignal[]): AbortSignal; + any(signals: Iterable): AbortSignal; /** * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time. * @@ -1892,7 +1892,7 @@ interface Blob { declare var Blob: { prototype: Blob; - new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; + new(blobParts?: Iterable, options?: BlobPropertyBag): Blob; }; interface Body { @@ -2188,6 +2188,10 @@ interface CSSNumericArray { readonly length: number; forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; [index: number]: CSSNumericValue; + [Symbol.iterator](): ArrayIterator; + entries(): ArrayIterator<[number, CSSNumericValue]>; + keys(): ArrayIterator; + values(): ArrayIterator; } declare var CSSNumericArray: { @@ -2485,11 +2489,15 @@ interface CSSTransformValue extends CSSStyleValue { toMatrix(): DOMMatrix; forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; [index: number]: CSSTransformComponent; + [Symbol.iterator](): ArrayIterator; + entries(): ArrayIterator<[number, CSSTransformComponent]>; + keys(): ArrayIterator; + values(): ArrayIterator; } declare var CSSTransformValue: { prototype: CSSTransformValue; - new(transforms: CSSTransformComponent[]): CSSTransformValue; + new(transforms: Iterable): CSSTransformValue; }; /** @@ -2562,11 +2570,15 @@ interface CSSUnparsedValue extends CSSStyleValue { readonly length: number; forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; [index: number]: CSSUnparsedSegment; + [Symbol.iterator](): ArrayIterator; + entries(): ArrayIterator<[number, CSSUnparsedSegment]>; + keys(): ArrayIterator; + values(): ArrayIterator; } declare var CSSUnparsedValue: { prototype: CSSUnparsedValue; - new(members: CSSUnparsedSegment[]): CSSUnparsedValue; + new(members: Iterable): CSSUnparsedValue; }; /** @@ -2612,7 +2624,7 @@ interface Cache { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ - addAll(requests: RequestInfo[]): Promise; + addAll(requests: Iterable): Promise; /** * The **`delete()`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true. If no Cache entry is found, it resolves to false. * @@ -2805,7 +2817,7 @@ interface CanvasPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ rect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ - roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; + roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable): void; } interface CanvasPathDrawingStyles { @@ -2822,7 +2834,7 @@ interface CanvasPathDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ getLineDash(): number[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ - setLineDash(segments: number[]): void; + setLineDash(segments: Iterable): void; } /** @@ -3114,13 +3126,13 @@ interface CookieStoreManager { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) */ - subscribe(subscriptions: CookieStoreGetOptions[]): Promise; + subscribe(subscriptions: Iterable): Promise; /** * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) */ - unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; + unsubscribe(subscriptions: Iterable): Promise; } declare var CookieStoreManager: { @@ -3448,7 +3460,7 @@ interface DOMMatrix extends DOMMatrixReadOnly { declare var DOMMatrix: { prototype: DOMMatrix; - new(init?: string | number[]): DOMMatrix; + new(init?: string | Iterable): DOMMatrix; /** * The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values. * @@ -3633,7 +3645,7 @@ interface DOMMatrixReadOnly { declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; - new(init?: string | number[]): DOMMatrixReadOnly; + new(init?: string | Iterable): DOMMatrixReadOnly; /** * The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values. * @@ -3954,6 +3966,7 @@ interface DOMStringList { */ item(index: number): string | null; [index: number]: string; + [Symbol.iterator](): ArrayIterator; } declare var DOMStringList: { @@ -4664,7 +4677,7 @@ interface File extends Blob { declare var File: { prototype: File; - new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; + new(fileBits: Iterable, fileName: string, options?: FilePropertyBag): File; }; /** @@ -4686,6 +4699,7 @@ interface FileList { */ item(index: number): File | null; [index: number]: File; + [Symbol.iterator](): ArrayIterator; } declare var FileList: { @@ -4824,6 +4838,10 @@ declare var FileReaderSync: { new(): FileReaderSync; }; + +interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { + [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; +} /** * The **`FileSystemDirectoryHandle`** interface of the File System API provides a handle to a file system directory. * Available only in secure contexts. @@ -4856,6 +4874,10 @@ interface FileSystemDirectoryHandle extends FileSystemHandle { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; + [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; + entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; + keys(): FileSystemDirectoryHandleAsyncIterator; + values(): FileSystemDirectoryHandleAsyncIterator; } declare var FileSystemDirectoryHandle: { @@ -5118,7 +5140,7 @@ interface FontFaceSetEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ -interface FontFaceSet extends EventTarget { +interface FontFaceSet extends EventTarget, Set { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ @@ -5185,6 +5207,10 @@ interface FontFaceSource { readonly fonts: FontFaceSet; } + +interface FormDataIterator extends IteratorObject { + [Symbol.iterator](): FormDataIterator; +} /** * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods. It uses the same format a form would use if the encoding type were set to "multipart/form-data". * @@ -5232,6 +5258,13 @@ interface FormData { set(name: string, value: string): void; set(name: string, blobValue: Blob, filename?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; + [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>; + /** Returns an array of key, value pairs for every entry in the list. */ + entries(): FormDataIterator<[string, FormDataEntryValue]>; + /** Returns a list of keys in the list. */ + keys(): FormDataIterator; + /** Returns a list of values in the list. */ + values(): FormDataIterator; } declare var FormData: { @@ -5395,7 +5428,7 @@ declare var GPUBindGroupLayout: { interface GPUBindingCommandsMixin { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */ - setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void; + setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable): void; setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void; } @@ -5550,19 +5583,19 @@ interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) */ - copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void; + copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) */ - copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void; + copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) */ - copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void; + copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer. * @@ -6051,7 +6084,7 @@ interface GPUQueue extends GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) */ - copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void; + copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D | Iterable): void; /** * The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed. * @@ -6063,7 +6096,7 @@ interface GPUQueue extends GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) */ - submit(commandBuffers: GPUCommandBuffer[]): void; + submit(commandBuffers: Iterable): void; /** * The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer. * @@ -6075,7 +6108,7 @@ interface GPUQueue extends GPUObjectBase { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) */ - writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void; + writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D | Iterable): void; } declare var GPUQueue: { @@ -6164,13 +6197,13 @@ interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommands * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) */ - executeBundles(bundles: GPURenderBundle[]): void; + executeBundles(bundles: Iterable): void; /** * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) */ - setBlendConstant(color: GPUColor): void; + setBlendConstant(color: GPUColor | Iterable): void; /** * The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded. * @@ -6250,7 +6283,7 @@ declare var GPUShaderModule: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) */ -interface GPUSupportedFeatures { +interface GPUSupportedFeatures extends ReadonlySet { forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; } @@ -6464,6 +6497,10 @@ interface GenericTransformStream { readonly writable: WritableStream; } + +interface HeadersIterator extends IteratorObject { + [Symbol.iterator](): HeadersIterator; +} /** * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing headers from the list of the request's headers. * @@ -6507,11 +6544,18 @@ interface Headers { */ set(name: string, value: string): void; forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; + [Symbol.iterator](): HeadersIterator<[string, string]>; + /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ + entries(): HeadersIterator<[string, string]>; + /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ + keys(): HeadersIterator; + /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ + values(): HeadersIterator; } declare var Headers: { prototype: Headers; - new(init?: HeadersInit): Headers; + new(init?: HeadersInit | Iterable<[string, string]>): Headers; }; /** @@ -6667,7 +6711,7 @@ interface IDBDatabase extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) */ - transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; + transaction(storeNames: string | Iterable, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; addEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -6927,7 +6971,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) */ - createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; + createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; /** * The **`delete()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, deletes the specified record or records. * @@ -7399,6 +7443,7 @@ interface ImageTrackList { */ readonly selectedTrack: ImageTrack | null; [index: number]: ImageTrack; + [Symbol.iterator](): ArrayIterator; } declare var ImageTrackList: { @@ -7592,7 +7637,7 @@ interface MessageEvent extends Event { */ readonly source: MessageEventSource | null; /** @deprecated */ - initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; + initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; } declare var MessageEvent: { @@ -9144,6 +9189,10 @@ declare var ReadableByteStreamController: { new(): ReadableByteStreamController; }; + +interface ReadableStreamAsyncIterator extends AsyncIteratorObject { + [Symbol.asyncIterator](): ReadableStreamAsyncIterator; +} /** * The **`ReadableStream`** interface of the Streams API represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. * @@ -9188,6 +9237,8 @@ interface ReadableStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */ tee(): [ReadableStream, ReadableStream]; + [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; + values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; } declare var ReadableStream: { @@ -9276,7 +9327,7 @@ interface ReadableStreamDefaultController { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */ - enqueue(chunk?: R): void; + enqueue(chunk: R): void; /** * The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error. * @@ -9986,6 +10037,10 @@ declare var StorageManager: { new(): StorageManager; }; + +interface StylePropertyMapReadOnlyIterator extends IteratorObject { + [Symbol.iterator](): StylePropertyMapReadOnlyIterator; +} /** * The **`StylePropertyMapReadOnly`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. Retrieve an instance of this interface using Element.computedStyleMap(). * @@ -10017,6 +10072,10 @@ interface StylePropertyMapReadOnly { */ has(property: string): boolean; forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void; + [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>; + entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue[]]>; + keys(): StylePropertyMapReadOnlyIterator; + values(): StylePropertyMapReadOnlyIterator; } declare var StylePropertyMapReadOnly: { @@ -10048,7 +10107,7 @@ interface SubtleCrypto { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ - deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; + deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable): Promise; /** * The **`digest()`** method of the SubtleCrypto interface generates a digest of the given data, using the specified hash function. A digest is a short fixed-length value derived from some variable-length input. Cryptographic digests should exhibit collision-resistance, meaning that it's hard to come up with two different inputs that have the same digest value. * @@ -10078,14 +10137,14 @@ interface SubtleCrypto { generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise; + generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable): Promise; /** * 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray): Promise; - importKey(format: Exclude, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise; + importKey(format: Exclude, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; /** * The **`sign()`** method of the SubtleCrypto interface generates a digital signature. * @@ -10097,7 +10156,7 @@ interface SubtleCrypto { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ - unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise; + unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; /** * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature. * @@ -10187,7 +10246,7 @@ declare var TaskSignal: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/any_static) */ - any(signals: AbortSignal[], init?: TaskSignalAnyInit): TaskSignal; + any(signals: Iterable, init?: TaskSignalAnyInit): TaskSignal; }; /** @@ -10641,6 +10700,10 @@ declare var URLPattern: { new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern; }; + +interface URLSearchParamsIterator extends IteratorObject { + [Symbol.iterator](): URLSearchParamsIterator; +} /** * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL. * @@ -10697,11 +10760,18 @@ interface URLSearchParams { sort(): void; toString(): string; forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; + [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; + /** Returns an array of key, value pairs for every entry in the search params. */ + entries(): URLSearchParamsIterator<[string, string]>; + /** Returns a list of keys in the search params. */ + keys(): URLSearchParamsIterator; + /** Returns a list of values in the search params. */ + values(): URLSearchParamsIterator; } declare var URLSearchParams: { prototype: URLSearchParams; - new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; + new(init?: Iterable | Record | string): URLSearchParams; }; /** @@ -11149,7 +11219,7 @@ interface WEBGL_draw_buffers { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ - drawBuffersWEBGL(buffers: GLenum[]): void; + drawBuffersWEBGL(buffers: Iterable): void; readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0; readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1; readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2; @@ -11217,25 +11287,25 @@ interface WEBGL_multi_draw { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ - multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; /** * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ - multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void; + multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, drawcount: GLsizei): void; /** * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ - multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; + multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; /** * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ - multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; + multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } /** @@ -11244,7 +11314,7 @@ interface WEBGL_multi_draw { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) */ -interface WGSLLanguageFeatures { +interface WGSLLanguageFeatures extends ReadonlySet { forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; } @@ -11845,11 +11915,11 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void; + clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List | Iterable, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void; + clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List | Iterable, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void; + clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List | Iterable, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */ @@ -11883,7 +11953,7 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */ drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ - drawBuffers(buffers: GLenum[]): void; + drawBuffers(buffers: Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */ drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */ @@ -11901,7 +11971,7 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */ getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ - getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; + getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable, pname: GLenum): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */ getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ @@ -11923,11 +11993,11 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */ getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ - getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null; + getUniformIndices(program: WebGLProgram, uniformNames: Iterable): GLuint[] | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ - invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; + invalidateFramebuffer(target: GLenum, attachments: Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ - invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + invalidateSubFramebuffer(target: GLenum, attachments: Iterable, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */ isQuery(query: WebGLQuery | null): GLboolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */ @@ -11964,47 +12034,47 @@ interface WebGL2RenderingContextBase { texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ - transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; + transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable, bufferMode: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; + uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ vertexAttribDivisor(index: GLuint, divisor: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4iv(index: GLuint, values: Int32List): void; + vertexAttribI4iv(index: GLuint, values: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4uiv(index: GLuint, values: Uint32List): void; + vertexAttribI4uiv(index: GLuint, values: Uint32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */ vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */ @@ -12304,27 +12374,27 @@ interface WebGL2RenderingContextOverloads { texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform1fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform1iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform2fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform2iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform3fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform3iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniform4fv(location: WebGLUniformLocation | null, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; + uniform4iv(location: WebGLUniformLocation | null, data: Int32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List | Iterable, srcOffset?: number, srcLength?: GLuint): void; } /** @@ -13014,19 +13084,19 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib1f(index: GLuint, x: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib1fv(index: GLuint, values: Float32List): void; + vertexAttrib1fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib2fv(index: GLuint, values: Float32List): void; + vertexAttrib2fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib3fv(index: GLuint, values: Float32List): void; + vertexAttrib3fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib4fv(index: GLuint, values: Float32List): void; + vertexAttrib4fv(index: GLuint, values: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */ vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */ @@ -13349,27 +13419,27 @@ interface WebGLRenderingContextOverloads { texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform1fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform1iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform2fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform2iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform3fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform3iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + uniform4fv(location: WebGLUniformLocation | null, v: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; + uniform4iv(location: WebGLUniformLocation | null, v: Int32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List | Iterable): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List | Iterable): void; } /** @@ -13579,7 +13649,7 @@ interface WebSocket extends EventTarget { declare var WebSocket: { prototype: WebSocket; - new(url: string | URL, protocols?: string | string[]): WebSocket; + new(url: string | URL, protocols?: string | Iterable): WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; @@ -14377,7 +14447,7 @@ declare namespace WebAssembly { var Exception: { prototype: Exception; - new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + new(exceptionTag: Tag, payload: Iterable, options?: ExceptionOptions): Exception; }; /** @@ -14714,7 +14784,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ - table(tabularData?: any, properties?: string[]): void; + table(tabularData?: any, properties?: Iterable): void; /** * The **`console.time()`** static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started. * @@ -14784,7 +14854,7 @@ interface QueuingStrategySize { } interface ReportingObserverCallback { - (reports: Report[], observer: ReportingObserver): void; + (reports: Iterable, observer: ReportingObserver): void; } interface SchedulerPostTaskCallback { @@ -15170,421 +15240,3 @@ type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; - - -///////////////////////////// -/// Worker Iterable APIs -///////////////////////////// - -interface CSSNumericArray { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSNumericValue]>; - keys(): ArrayIterator; - values(): ArrayIterator; -} - -interface CSSTransformValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSTransformComponent]>; - keys(): ArrayIterator; - values(): ArrayIterator; -} - -interface CSSUnparsedValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSUnparsedSegment]>; - keys(): ArrayIterator; - values(): ArrayIterator; -} - -interface Cache { - /** - * The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. The request objects created during retrieval become keys to the stored response operations. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) - */ - addAll(requests: Iterable): Promise; -} - -interface CanvasPath { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ - roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable): void; -} - -interface CanvasPathDrawingStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ - setLineDash(segments: Iterable): void; -} - -interface CookieStoreManager { - /** - * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) - */ - subscribe(subscriptions: Iterable): Promise; - /** - * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) - */ - unsubscribe(subscriptions: Iterable): Promise; -} - -interface DOMStringList { - [Symbol.iterator](): ArrayIterator; -} - -interface FileList { - [Symbol.iterator](): ArrayIterator; -} - -interface FontFaceSet extends Set { -} - -interface FormDataIterator extends IteratorObject { - [Symbol.iterator](): FormDataIterator; -} - -interface FormData { - [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>; - /** Returns an array of key, value pairs for every entry in the list. */ - entries(): FormDataIterator<[string, FormDataEntryValue]>; - /** Returns a list of keys in the list. */ - keys(): FormDataIterator; - /** Returns a list of values in the list. */ - values(): FormDataIterator; -} - -interface GPUBindingCommandsMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */ - setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable): void; -} - -interface GPUCommandEncoder { - /** - * The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) - */ - copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable): void; - /** - * The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) - */ - copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable): void; - /** - * The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) - */ - copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable): void; -} - -interface GPUQueue { - /** - * The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) - */ - copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable): void; - /** - * The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) - */ - submit(commandBuffers: Iterable): void; - /** - * The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) - */ - writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable): void; -} - -interface GPURenderPassEncoder { - /** - * The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) - */ - executeBundles(bundles: Iterable): void; - /** - * The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) - */ - setBlendConstant(color: Iterable): void; -} - -interface GPUSupportedFeatures extends ReadonlySet { -} - -interface HeadersIterator extends IteratorObject { - [Symbol.iterator](): HeadersIterator; -} - -interface Headers { - [Symbol.iterator](): HeadersIterator<[string, string]>; - /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ - entries(): HeadersIterator<[string, string]>; - /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ - keys(): HeadersIterator; - /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ - values(): HeadersIterator; -} - -interface IDBDatabase { - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) - */ - transaction(storeNames: string | Iterable, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; -} - -interface IDBObjectStore { - /** - * The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database. It creates a new field/column defining a new data point for each database record to contain. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) - */ - createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; -} - -interface ImageTrackList { - [Symbol.iterator](): ArrayIterator; -} - -interface MessageEvent { - /** @deprecated */ - initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; -} - -interface StylePropertyMapReadOnlyIterator extends IteratorObject { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator; -} - -interface StylePropertyMapReadOnly { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - entries(): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - keys(): StylePropertyMapReadOnlyIterator; - values(): StylePropertyMapReadOnlyIterator>; -} - -interface SubtleCrypto { - /** - * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) - */ - deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable): Promise; - /** - * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) - */ - generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; - generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise; - generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable): Promise; - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) - */ - importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray): Promise; - importKey(format: Exclude, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; - /** - * The **`unwrapKey()`** method of the SubtleCrypto interface "unwraps" a key. This means that it takes as its input a key that has been exported and then encrypted (also called "wrapped"). It decrypts the key and then imports it, returning a CryptoKey object that can be used in the Web Crypto API. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) - */ - unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; -} - -interface URLSearchParamsIterator extends IteratorObject { - [Symbol.iterator](): URLSearchParamsIterator; -} - -interface URLSearchParams { - [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; - /** Returns an array of key, value pairs for every entry in the search params. */ - entries(): URLSearchParamsIterator<[string, string]>; - /** Returns a list of keys in the search params. */ - keys(): URLSearchParamsIterator; - /** Returns a list of values in the search params. */ - values(): URLSearchParamsIterator; -} - -interface WEBGL_draw_buffers { - /** - * 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. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) - */ - drawBuffersWEBGL(buffers: Iterable): void; -} - -interface WEBGL_multi_draw { - /** - * The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArraysInstanced() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) - */ - multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; - /** - * The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) - */ - multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable, firstsOffset: number, countsList: Int32Array | Iterable, countsOffset: number, drawcount: GLsizei): void; - /** - * The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) - */ - multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, instanceCountsList: Int32Array | Iterable, instanceCountsOffset: number, drawcount: GLsizei): void; - /** - * The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) - */ - multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; -} - -interface WGSLLanguageFeatures extends ReadonlySet { -} - -interface WebGL2RenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ - drawBuffers(buffers: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ - getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ - getUniformIndices(program: WebGLProgram, uniformNames: Iterable): GLuint[] | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ - invalidateFramebuffer(target: GLenum, attachments: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ - invalidateSubFramebuffer(target: GLenum, attachments: Iterable, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ - transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable, bufferMode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform1uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform2uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform3uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform4uiv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4iv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4uiv(index: GLuint, values: Iterable): void; -} - -interface WebGL2RenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; -} - -interface WebGLRenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib1fv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib2fv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib3fv(index: GLuint, values: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib4fv(index: GLuint, values: Iterable): void; -} - -interface WebGLRenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, v: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; -} - - -///////////////////////////// -/// Worker Async Iterable APIs -///////////////////////////// - -interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; -} - -interface FileSystemDirectoryHandle { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; - entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>; - keys(): FileSystemDirectoryHandleAsyncIterator; - values(): FileSystemDirectoryHandleAsyncIterator; -} - -interface ReadableStreamAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; -} - -interface ReadableStream { - [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; - values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; -} diff --git a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.types b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.types index aed4bbec652c6..97d95e8915a41 100644 --- a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.types +++ b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === checkJsxChildrenCanBeTupleType.tsx === /// diff --git a/tests/baselines/reference/contextualOverloadListFromArrayUnion.types b/tests/baselines/reference/contextualOverloadListFromArrayUnion.types index 77298efc245ef..426e48722f7cd 100644 --- a/tests/baselines/reference/contextualOverloadListFromArrayUnion.types +++ b/tests/baselines/reference/contextualOverloadListFromArrayUnion.types @@ -78,8 +78,8 @@ const resizeObserver = new ResizeObserver(([entry]) => { > : ^^^^^^^^^^^^^^ >ResizeObserver : { new (callback: globalThis.ResizeObserverCallback): ResizeObserver; prototype: ResizeObserver; } > : ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^ ->([entry]) => { entry} : ([entry]: ResizeObserverEntry[]) => void -> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>([entry]) => { entry} : ([entry]: Iterable) => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >entry : ResizeObserverEntry > : ^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/contextuallyTypedJsxChildren.types b/tests/baselines/reference/contextuallyTypedJsxChildren.types index 69b21963705d2..59a17390a16ed 100644 --- a/tests/baselines/reference/contextuallyTypedJsxChildren.types +++ b/tests/baselines/reference/contextuallyTypedJsxChildren.types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === contextuallyTypedJsxChildren.tsx === /// diff --git a/tests/baselines/reference/divergentAccessorsTypes6.symbols b/tests/baselines/reference/divergentAccessorsTypes6.symbols index e4cdd8798fa56..45b6be3820468 100644 --- a/tests/baselines/reference/divergentAccessorsTypes6.symbols +++ b/tests/baselines/reference/divergentAccessorsTypes6.symbols @@ -8,7 +8,7 @@ interface Element { get style(): CSSStyleDeclaration; >style : Symbol(Element.style, Decl(divergentAccessorsTypes6.ts, 2, 19), Decl(divergentAccessorsTypes6.ts, 3, 37)) ->CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) set style(cssText: string); >style : Symbol(Element.style, Decl(divergentAccessorsTypes6.ts, 2, 19), Decl(divergentAccessorsTypes6.ts, 3, 37)) diff --git a/tests/baselines/reference/divergentAccessorsTypes8.symbols b/tests/baselines/reference/divergentAccessorsTypes8.symbols index 95a5e152e8726..e168fbf6fbdad 100644 --- a/tests/baselines/reference/divergentAccessorsTypes8.symbols +++ b/tests/baselines/reference/divergentAccessorsTypes8.symbols @@ -39,7 +39,7 @@ interface Element { get style(): CSSStyleDeclaration; >style : Symbol(Element.style, Decl(divergentAccessorsTypes8.ts, 12, 19), Decl(divergentAccessorsTypes8.ts, 13, 37)) ->CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) set style(cssText: string); >style : Symbol(Element.style, Decl(divergentAccessorsTypes8.ts, 12, 19), Decl(divergentAccessorsTypes8.ts, 13, 37)) diff --git a/tests/baselines/reference/jsxElementType.types b/tests/baselines/reference/jsxElementType.types index 2caa7a74f4280..e13f14256e0e8 100644 --- a/tests/baselines/reference/jsxElementType.types +++ b/tests/baselines/reference/jsxElementType.types @@ -4,7 +4,7 @@ Assignability cache: 2,500 -> 5,000 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === jsxElementType.tsx === /// diff --git a/tests/baselines/reference/jsxFragmentFactoryNoUnusedLocals.types b/tests/baselines/reference/jsxFragmentFactoryNoUnusedLocals.types index 992e04851d9f2..a9500d3d651fd 100644 --- a/tests/baselines/reference/jsxFragmentFactoryNoUnusedLocals.types +++ b/tests/baselines/reference/jsxFragmentFactoryNoUnusedLocals.types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 50,000 -> 100,000 +Symbol count: 50,000 === jsxFragmentFactoryNoUnusedLocals.tsx === /// diff --git a/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsx).types b/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsx).types index afcbbc78195fd..6c9f967278f60 100644 --- a/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsx).types +++ b/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsx).types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === jsxJsxsCjsTransformNestedSelfClosingChild.tsx === /// diff --git a/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsxdev).types b/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsxdev).types index afcbbc78195fd..6c9f967278f60 100644 --- a/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsxdev).types +++ b/tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsxdev).types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === jsxJsxsCjsTransformNestedSelfClosingChild.tsx === /// diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).types b/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).types index af8c54b61dc52..40cef885f2f65 100644 --- a/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).types +++ b/tests/baselines/reference/jsxRuntimePragma(jsx=preserve).types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === one.tsx === /// diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=react).types b/tests/baselines/reference/jsxRuntimePragma(jsx=react).types index af8c54b61dc52..40cef885f2f65 100644 --- a/tests/baselines/reference/jsxRuntimePragma(jsx=react).types +++ b/tests/baselines/reference/jsxRuntimePragma(jsx=react).types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === one.tsx === /// diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).types b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).types index af8c54b61dc52..40cef885f2f65 100644 --- a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).types +++ b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsx).types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === one.tsx === /// diff --git a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).types b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).types index af8c54b61dc52..40cef885f2f65 100644 --- a/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).types +++ b/tests/baselines/reference/jsxRuntimePragma(jsx=react-jsxdev).types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 100,000 +Symbol count: 50,000 === one.tsx === /// diff --git a/tests/baselines/reference/modularizeLibrary_Worker.iterable.symbols b/tests/baselines/reference/modularizeLibrary_Worker.iterable.symbols index 2471c214c1a35..8b8ee05142b36 100644 --- a/tests/baselines/reference/modularizeLibrary_Worker.iterable.symbols +++ b/tests/baselines/reference/modularizeLibrary_Worker.iterable.symbols @@ -4,7 +4,7 @@ for (const [key, entry] of new FormData()) { >key : Symbol(key, Decl(modularizeLibrary_Worker.iterable.ts, 0, 12)) >entry : Symbol(entry, Decl(modularizeLibrary_Worker.iterable.ts, 0, 16)) ->FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --)) +>FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --)) entry; >entry : Symbol(entry, Decl(modularizeLibrary_Worker.iterable.ts, 0, 16)) diff --git a/tests/baselines/reference/objectFromEntries.symbols b/tests/baselines/reference/objectFromEntries.symbols index aa4c1da6d9a31..01a86b0c97586 100644 --- a/tests/baselines/reference/objectFromEntries.symbols +++ b/tests/baselines/reference/objectFromEntries.symbols @@ -12,7 +12,7 @@ const o2 = Object.fromEntries(new URLSearchParams()); >Object.fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) ->URLSearchParams : Symbol(URLSearchParams, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>URLSearchParams : Symbol(URLSearchParams, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) const o3 = Object.fromEntries(new Map([[Symbol("key"), "value"]])); >o3 : Symbol(o3, Decl(objectFromEntries.ts, 2, 5)) diff --git a/tests/baselines/reference/objectFromEntries.types b/tests/baselines/reference/objectFromEntries.types index 8baa6681b60f1..94b80537ec123 100644 --- a/tests/baselines/reference/objectFromEntries.types +++ b/tests/baselines/reference/objectFromEntries.types @@ -46,8 +46,8 @@ const o2 = Object.fromEntries(new URLSearchParams()); > : ^^^ ^^^^^^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ >new URLSearchParams() : URLSearchParams > : ^^^^^^^^^^^^^^^ ->URLSearchParams : { new (init?: string[][] | Record | string | URLSearchParams): URLSearchParams; prototype: URLSearchParams; } -> : ^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^ ^^^ +>URLSearchParams : { new (init?: Iterable | Record | string): URLSearchParams; prototype: URLSearchParams; } +> : ^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^ ^^^ const o3 = Object.fromEntries(new Map([[Symbol("key"), "value"]])); >o3 : { [k: string]: string; } diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols index 076d8b5567389..14ed9c57d4bb7 100644 --- a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.symbols @@ -8,7 +8,7 @@ namespace M { >X : Symbol(X, Decl(a.ts, 1, 14)) } interface Navigator { ->Navigator : Symbol(Navigator, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(a.ts, 2, 1)) +>Navigator : Symbol(Navigator, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(a.ts, 2, 1)) getGamepads(func?: any): any; >getGamepads : Symbol(Navigator.getGamepads, Decl(lib.dom.d.ts, --, --), Decl(a.ts, 3, 21)) diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion2.types b/tests/baselines/reference/truthinessCallExpressionCoercion2.types index 01bf1803364ef..ae49914ae177c 100644 --- a/tests/baselines/reference/truthinessCallExpressionCoercion2.types +++ b/tests/baselines/reference/truthinessCallExpressionCoercion2.types @@ -520,10 +520,10 @@ function checksConsole() { > : ^^^^^^^ >firebug : any > : ^^^ ->(window.console.error && window.console.table) : (tabularData?: any, properties?: string[]) => void -> : ^ ^^^ ^^ ^^^ ^^^^^ ->window.console.error && window.console.table : (tabularData?: any, properties?: string[]) => void -> : ^ ^^^ ^^ ^^^ ^^^^^ +>(window.console.error && window.console.table) : (tabularData?: any, properties?: Iterable) => void +> : ^ ^^^ ^^ ^^^ ^^^^^ +>window.console.error && window.console.table : (tabularData?: any, properties?: Iterable) => void +> : ^ ^^^ ^^ ^^^ ^^^^^ >window.console.error : (...data: any[]) => void > : ^^^^ ^^ ^^^^^ >window.console : Console @@ -534,16 +534,16 @@ function checksConsole() { > : ^^^^^^^ >error : (...data: any[]) => void > : ^^^^ ^^ ^^^^^ ->window.console.table : (tabularData?: any, properties?: string[]) => void -> : ^ ^^^ ^^ ^^^ ^^^^^ +>window.console.table : (tabularData?: any, properties?: Iterable) => void +> : ^ ^^^ ^^ ^^^ ^^^^^ >window.console : Console > : ^^^^^^^ >window : Window & typeof globalThis > : ^^^^^^^^^^^^^^^^^^^^^^^^^^ >console : Console > : ^^^^^^^ ->table : (tabularData?: any, properties?: string[]) => void -> : ^ ^^^ ^^ ^^^ ^^^^^ +>table : (tabularData?: any, properties?: Iterable) => void +> : ^ ^^^ ^^ ^^^ ^^^^^ } function checksPropertyAccess() { diff --git a/tests/baselines/reference/tsxReactEmitSpreadAttribute(target=es2018).types b/tests/baselines/reference/tsxReactEmitSpreadAttribute(target=es2018).types index 40760fde6a54d..3566189fa7eca 100644 --- a/tests/baselines/reference/tsxReactEmitSpreadAttribute(target=es2018).types +++ b/tests/baselines/reference/tsxReactEmitSpreadAttribute(target=es2018).types @@ -4,7 +4,7 @@ Assignability cache: 2,500 Type Count: 10,000 Instantiation count: 100,000 -Symbol count: 50,000 -> 100,000 +Symbol count: 50,000 === test.tsx === /// diff --git a/tests/baselines/reference/typedArrays-es5(target=es2015).symbols b/tests/baselines/reference/typedArrays-es5(target=es2015).symbols index 81ca1ace9245b..0ab5ea8179f58 100644 --- a/tests/baselines/reference/typedArrays-es5(target=es2015).symbols +++ b/tests/baselines/reference/typedArrays-es5(target=es2015).symbols @@ -38,7 +38,7 @@ const int8Array = new Int8Array(1); const nodeList = new NodeList(); >nodeList : Symbol(nodeList, Decl(typedArrays-es5.ts, 15, 5)) ->NodeList : Symbol(NodeList, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>NodeList : Symbol(NodeList, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) [...nodeList]; >nodeList : Symbol(nodeList, Decl(typedArrays-es5.ts, 15, 5)) diff --git a/tests/baselines/reference/typedArrays-es5(target=es5).symbols b/tests/baselines/reference/typedArrays-es5(target=es5).symbols index 81ca1ace9245b..0ab5ea8179f58 100644 --- a/tests/baselines/reference/typedArrays-es5(target=es5).symbols +++ b/tests/baselines/reference/typedArrays-es5(target=es5).symbols @@ -38,7 +38,7 @@ const int8Array = new Int8Array(1); const nodeList = new NodeList(); >nodeList : Symbol(nodeList, Decl(typedArrays-es5.ts, 15, 5)) ->NodeList : Symbol(NodeList, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>NodeList : Symbol(NodeList, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) [...nodeList]; >nodeList : Symbol(nodeList, Decl(typedArrays-es5.ts, 15, 5)) diff --git a/tests/baselines/reference/typedArrays-es6.symbols b/tests/baselines/reference/typedArrays-es6.symbols index a077d91980550..693d9427f843b 100644 --- a/tests/baselines/reference/typedArrays-es6.symbols +++ b/tests/baselines/reference/typedArrays-es6.symbols @@ -38,7 +38,7 @@ const int8Array = new Int8Array(1); const nodeList = new NodeList(); >nodeList : Symbol(nodeList, Decl(typedArrays-es6.ts, 15, 5)) ->NodeList : Symbol(NodeList, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>NodeList : Symbol(NodeList, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) [...nodeList]; >nodeList : Symbol(nodeList, Decl(typedArrays-es6.ts, 15, 5)) diff --git a/tests/baselines/reference/webworkerIterable.symbols b/tests/baselines/reference/webworkerIterable.symbols index e3392b8a60e89..8b533b3b2dbc3 100644 --- a/tests/baselines/reference/webworkerIterable.symbols +++ b/tests/baselines/reference/webworkerIterable.symbols @@ -8,7 +8,7 @@ importScripts("") // This should not raise a compiler error const f = new FormData() >f : Symbol(f, Decl(webworkerIterable.ts, 4, 5)) ->FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --)) +>FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --)) for (const element of f) { >element : Symbol(element, Decl(webworkerIterable.ts, 5, 10))