1 /*! *****************************************************************************
2 Copyright (c) Microsoft Corporation. All rights reserved.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the
5 License at http://www.apache.org/licenses/LICENSE-2.0
7 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10 MERCHANTABLITY OR NON-INFRINGEMENT.
12 See the Apache Version 2.0 License for specific language governing permissions
13 and limitations under the License.
14 ***************************************************************************** */
18 /// <reference no-default-lib="true"/>
\r
21 /////////////////////////////
23 /////////////////////////////
25 interface AudioParam {
26 setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
29 interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
32 interface BaseAudioContext {
33 createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
34 createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
37 interface CSSRuleList {
38 [Symbol.iterator](): IterableIterator<CSSRule>;
41 interface CSSStyleDeclaration {
42 [Symbol.iterator](): IterableIterator<string>;
46 addAll(requests: Iterable<RequestInfo>): Promise<void>;
49 interface CanvasPathDrawingStyles {
50 setLineDash(segments: Iterable<number>): void;
53 interface ClientRectList {
54 [Symbol.iterator](): IterableIterator<ClientRect>;
57 interface DOMRectList {
58 [Symbol.iterator](): IterableIterator<DOMRect>;
61 interface DOMStringList {
62 [Symbol.iterator](): IterableIterator<string>;
65 interface DOMTokenList {
66 [Symbol.iterator](): IterableIterator<string>;
67 entries(): IterableIterator<[number, string]>;
68 keys(): IterableIterator<number>;
69 values(): IterableIterator<string>;
72 interface DataTransferItemList {
73 [Symbol.iterator](): IterableIterator<DataTransferItem>;
77 [Symbol.iterator](): IterableIterator<File>;
81 [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
83 * Returns an array of key, value pairs for every entry in the list.
85 entries(): IterableIterator<[string, FormDataEntryValue]>;
87 * Returns a list of keys in the list.
89 keys(): IterableIterator<string>;
91 * Returns a list of values in the list.
93 values(): IterableIterator<FormDataEntryValue>;
96 interface HTMLAllCollection {
97 [Symbol.iterator](): IterableIterator<Element>;
100 interface HTMLCollectionBase {
101 [Symbol.iterator](): IterableIterator<Element>;
104 interface HTMLCollectionOf<T extends Element> {
105 [Symbol.iterator](): IterableIterator<T>;
108 interface HTMLFormElement {
109 [Symbol.iterator](): IterableIterator<Element>;
112 interface HTMLSelectElement {
113 [Symbol.iterator](): IterableIterator<Element>;
117 [Symbol.iterator](): IterableIterator<[string, string]>;
119 * Returns an iterator allowing to go through all key/value pairs contained in this object.
121 entries(): IterableIterator<[string, string]>;
123 * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
125 keys(): IterableIterator<string>;
127 * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
129 values(): IterableIterator<string>;
132 interface IDBDatabase {
134 * 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.
136 transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
139 interface IDBObjectStore {
141 * 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.
143 * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
145 createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
148 interface MediaKeyStatusMap {
149 [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
150 entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
151 keys(): IterableIterator<BufferSource>;
152 values(): IterableIterator<MediaKeyStatus>;
155 interface MediaList {
156 [Symbol.iterator](): IterableIterator<string>;
159 interface MimeTypeArray {
160 [Symbol.iterator](): IterableIterator<MimeType>;
163 interface NamedNodeMap {
164 [Symbol.iterator](): IterableIterator<Attr>;
167 interface Navigator {
168 requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
172 [Symbol.iterator](): IterableIterator<Node>;
174 * Returns an array of key, value pairs for every entry in the list.
176 entries(): IterableIterator<[number, Node]>;
178 * Returns an list of keys in the list.
180 keys(): IterableIterator<number>;
182 * Returns an list of values in the list.
184 values(): IterableIterator<Node>;
187 interface NodeListOf<TNode extends Node> {
188 [Symbol.iterator](): IterableIterator<TNode>;
190 * Returns an array of key, value pairs for every entry in the list.
192 entries(): IterableIterator<[number, TNode]>;
194 * Returns an list of keys in the list.
196 keys(): IterableIterator<number>;
198 * Returns an list of values in the list.
200 values(): IterableIterator<TNode>;
204 [Symbol.iterator](): IterableIterator<MimeType>;
207 interface PluginArray {
208 [Symbol.iterator](): IterableIterator<Plugin>;
211 interface RTCRtpTransceiver {
212 setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
215 interface RTCStatsReport extends ReadonlyMap<string, any> {
218 interface SVGLengthList {
219 [Symbol.iterator](): IterableIterator<SVGLength>;
222 interface SVGNumberList {
223 [Symbol.iterator](): IterableIterator<SVGNumber>;
226 interface SVGPointList {
227 [Symbol.iterator](): IterableIterator<DOMPoint>;
230 interface SVGStringList {
231 [Symbol.iterator](): IterableIterator<string>;
234 interface SourceBufferList {
235 [Symbol.iterator](): IterableIterator<SourceBuffer>;
238 interface SpeechGrammarList {
239 [Symbol.iterator](): IterableIterator<SpeechGrammar>;
242 interface SpeechRecognitionResult {
243 [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
246 interface SpeechRecognitionResultList {
247 [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
250 interface StyleSheetList {
251 [Symbol.iterator](): IterableIterator<CSSStyleSheet>;
254 interface TextTrackCueList {
255 [Symbol.iterator](): IterableIterator<TextTrackCue>;
258 interface TextTrackList {
259 [Symbol.iterator](): IterableIterator<TextTrack>;
262 interface TouchList {
263 [Symbol.iterator](): IterableIterator<Touch>;
266 interface URLSearchParams {
267 [Symbol.iterator](): IterableIterator<[string, string]>;
269 * Returns an array of key, value pairs for every entry in the search params.
271 entries(): IterableIterator<[string, string]>;
273 * Returns a list of keys in the search params.
275 keys(): IterableIterator<string>;
277 * Returns a list of values in the search params.
279 values(): IterableIterator<string>;
282 interface VRDisplay {
283 requestPresent(layers: Iterable<VRLayer>): Promise<void>;
286 interface WEBGL_draw_buffers {
287 drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
290 interface WebAuthentication {
291 makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
294 interface WebGL2RenderingContextBase {
295 clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
296 clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
297 clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
298 drawBuffers(buffers: Iterable<GLenum>): void;
299 getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
300 getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
301 invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
302 invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
303 transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
304 uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
305 uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
306 uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
307 uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
308 uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
309 uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
310 uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
311 uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
312 uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
313 uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
314 vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
315 vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
318 interface WebGL2RenderingContextOverloads {
319 uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
320 uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
321 uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
322 uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
323 uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
324 uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
325 uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
326 uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
327 uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
328 uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
329 uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
332 interface WebGLRenderingContextBase {
333 vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
334 vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
335 vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
336 vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
339 interface WebGLRenderingContextOverloads {
340 uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
341 uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
342 uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
343 uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
344 uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
345 uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
346 uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
347 uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
348 uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
349 uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
350 uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;