1///////////////////////////// 2/// DOM Iterable APIs 3///////////////////////////// 4 5interface AudioParam { 6 setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam; 7} 8 9interface AudioParamMap extends ReadonlyMap<string, AudioParam> { 10} 11 12interface BaseAudioContext { 13 createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode; 14 createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave; 15} 16 17interface CSSRuleList { 18 [Symbol.iterator](): IterableIterator<CSSRule>; 19} 20 21interface CSSStyleDeclaration { 22 [Symbol.iterator](): IterableIterator<string>; 23} 24 25interface Cache { 26 addAll(requests: Iterable<RequestInfo>): Promise<void>; 27} 28 29interface CanvasPathDrawingStyles { 30 setLineDash(segments: Iterable<number>): void; 31} 32 33interface ClientRectList { 34 [Symbol.iterator](): IterableIterator<ClientRect>; 35} 36 37interface DOMRectList { 38 [Symbol.iterator](): IterableIterator<DOMRect>; 39} 40 41interface DOMStringList { 42 [Symbol.iterator](): IterableIterator<string>; 43} 44 45interface DOMTokenList { 46 [Symbol.iterator](): IterableIterator<string>; 47 entries(): IterableIterator<[number, string]>; 48 keys(): IterableIterator<number>; 49 values(): IterableIterator<string>; 50} 51 52interface DataTransferItemList { 53 [Symbol.iterator](): IterableIterator<DataTransferItem>; 54} 55 56interface FileList { 57 [Symbol.iterator](): IterableIterator<File>; 58} 59 60interface FormData { 61 [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; 62 /** 63 * Returns an array of key, value pairs for every entry in the list. 64 */ 65 entries(): IterableIterator<[string, FormDataEntryValue]>; 66 /** 67 * Returns a list of keys in the list. 68 */ 69 keys(): IterableIterator<string>; 70 /** 71 * Returns a list of values in the list. 72 */ 73 values(): IterableIterator<FormDataEntryValue>; 74} 75 76interface HTMLAllCollection { 77 [Symbol.iterator](): IterableIterator<Element>; 78} 79 80interface HTMLCollectionBase { 81 [Symbol.iterator](): IterableIterator<Element>; 82} 83 84interface HTMLCollectionOf<T extends Element> { 85 [Symbol.iterator](): IterableIterator<T>; 86} 87 88interface HTMLFormElement { 89 [Symbol.iterator](): IterableIterator<Element>; 90} 91 92interface HTMLSelectElement { 93 [Symbol.iterator](): IterableIterator<Element>; 94} 95 96interface Headers { 97 [Symbol.iterator](): IterableIterator<[string, string]>; 98 /** 99 * Returns an iterator allowing to go through all key/value pairs contained in this object. 100 */ 101 entries(): IterableIterator<[string, string]>; 102 /** 103 * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. 104 */ 105 keys(): IterableIterator<string>; 106 /** 107 * Returns an iterator allowing to go through all values of the key/value pairs contained in this object. 108 */ 109 values(): IterableIterator<string>; 110} 111 112interface IDBDatabase { 113 /** 114 * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. 115 */ 116 transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction; 117} 118 119interface IDBObjectStore { 120 /** 121 * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. 122 * 123 * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. 124 */ 125 createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; 126} 127 128interface MediaKeyStatusMap { 129 [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; 130 entries(): IterableIterator<[BufferSource, MediaKeyStatus]>; 131 keys(): IterableIterator<BufferSource>; 132 values(): IterableIterator<MediaKeyStatus>; 133} 134 135interface MediaList { 136 [Symbol.iterator](): IterableIterator<string>; 137} 138 139interface MimeTypeArray { 140 [Symbol.iterator](): IterableIterator<MimeType>; 141} 142 143interface NamedNodeMap { 144 [Symbol.iterator](): IterableIterator<Attr>; 145} 146 147interface Navigator { 148 requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>; 149} 150 151interface NodeList { 152 [Symbol.iterator](): IterableIterator<Node>; 153 /** 154 * Returns an array of key, value pairs for every entry in the list. 155 */ 156 entries(): IterableIterator<[number, Node]>; 157 /** 158 * Returns an list of keys in the list. 159 */ 160 keys(): IterableIterator<number>; 161 /** 162 * Returns an list of values in the list. 163 */ 164 values(): IterableIterator<Node>; 165} 166 167interface NodeListOf<TNode extends Node> { 168 [Symbol.iterator](): IterableIterator<TNode>; 169 /** 170 * Returns an array of key, value pairs for every entry in the list. 171 */ 172 entries(): IterableIterator<[number, TNode]>; 173 /** 174 * Returns an list of keys in the list. 175 */ 176 keys(): IterableIterator<number>; 177 /** 178 * Returns an list of values in the list. 179 */ 180 values(): IterableIterator<TNode>; 181} 182 183interface Plugin { 184 [Symbol.iterator](): IterableIterator<MimeType>; 185} 186 187interface PluginArray { 188 [Symbol.iterator](): IterableIterator<Plugin>; 189} 190 191interface RTCRtpTransceiver { 192 setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void; 193} 194 195interface RTCStatsReport extends ReadonlyMap<string, any> { 196} 197 198interface SVGLengthList { 199 [Symbol.iterator](): IterableIterator<SVGLength>; 200} 201 202interface SVGNumberList { 203 [Symbol.iterator](): IterableIterator<SVGNumber>; 204} 205 206interface SVGPointList { 207 [Symbol.iterator](): IterableIterator<DOMPoint>; 208} 209 210interface SVGStringList { 211 [Symbol.iterator](): IterableIterator<string>; 212} 213 214interface SourceBufferList { 215 [Symbol.iterator](): IterableIterator<SourceBuffer>; 216} 217 218interface SpeechGrammarList { 219 [Symbol.iterator](): IterableIterator<SpeechGrammar>; 220} 221 222interface SpeechRecognitionResult { 223 [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>; 224} 225 226interface SpeechRecognitionResultList { 227 [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>; 228} 229 230interface StyleSheetList { 231 [Symbol.iterator](): IterableIterator<CSSStyleSheet>; 232} 233 234interface TextTrackCueList { 235 [Symbol.iterator](): IterableIterator<TextTrackCue>; 236} 237 238interface TextTrackList { 239 [Symbol.iterator](): IterableIterator<TextTrack>; 240} 241 242interface TouchList { 243 [Symbol.iterator](): IterableIterator<Touch>; 244} 245 246interface URLSearchParams { 247 [Symbol.iterator](): IterableIterator<[string, string]>; 248 /** 249 * Returns an array of key, value pairs for every entry in the search params. 250 */ 251 entries(): IterableIterator<[string, string]>; 252 /** 253 * Returns a list of keys in the search params. 254 */ 255 keys(): IterableIterator<string>; 256 /** 257 * Returns a list of values in the search params. 258 */ 259 values(): IterableIterator<string>; 260} 261 262interface VRDisplay { 263 requestPresent(layers: Iterable<VRLayer>): Promise<void>; 264} 265 266interface WEBGL_draw_buffers { 267 drawBuffersWEBGL(buffers: Iterable<GLenum>): void; 268} 269 270interface WebAuthentication { 271 makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>; 272} 273 274interface WebGL2RenderingContextBase { 275 clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void; 276 clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void; 277 clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void; 278 drawBuffers(buffers: Iterable<GLenum>): void; 279 getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; 280 getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; 281 invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; 282 invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; 283 transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; 284 uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; 285 uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; 286 uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; 287 uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; 288 uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 289 uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 290 uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 291 uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 292 uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 293 uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 294 vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; 295 vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; 296} 297 298interface WebGL2RenderingContextOverloads { 299 uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 300 uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; 301 uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 302 uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; 303 uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 304 uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; 305 uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 306 uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; 307 uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 308 uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 309 uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; 310} 311 312interface WebGLRenderingContextBase { 313 vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; 314 vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; 315 vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; 316 vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; 317} 318 319interface WebGLRenderingContextOverloads { 320 uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; 321 uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; 322 uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; 323 uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; 324 uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; 325 uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; 326 uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; 327 uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; 328 uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; 329 uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; 330 uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; 331} 332