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