@types/web 0.0.220 → 0.0.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +105 -67
- package/iterable.d.ts +4 -4
- package/package.json +6 -1
- package/ts5.5/index.d.ts +41 -3
- package/ts5.6/index.d.ts +30951 -0
- package/ts5.6/iterable.d.ts +475 -0
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
/////////////////////////////
|
|
2
|
+
/// Window Iterable APIs
|
|
3
|
+
/////////////////////////////
|
|
4
|
+
|
|
5
|
+
interface AudioParam {
|
|
6
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
|
7
|
+
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface BaseAudioContext {
|
|
14
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
|
|
15
|
+
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
|
|
16
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
|
|
17
|
+
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface CSSKeyframesRule {
|
|
21
|
+
[Symbol.iterator](): ArrayIterator<CSSKeyframeRule>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface CSSNumericArray {
|
|
25
|
+
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
|
26
|
+
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
|
27
|
+
keys(): ArrayIterator<number>;
|
|
28
|
+
values(): ArrayIterator<CSSNumericValue>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface CSSRuleList {
|
|
32
|
+
[Symbol.iterator](): ArrayIterator<CSSRule>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface CSSStyleDeclaration {
|
|
36
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface CSSTransformValue {
|
|
40
|
+
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
|
|
41
|
+
entries(): ArrayIterator<[number, CSSTransformComponent]>;
|
|
42
|
+
keys(): ArrayIterator<number>;
|
|
43
|
+
values(): ArrayIterator<CSSTransformComponent>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface CSSUnparsedValue {
|
|
47
|
+
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
|
|
48
|
+
entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
|
|
49
|
+
keys(): ArrayIterator<number>;
|
|
50
|
+
values(): ArrayIterator<CSSUnparsedSegment>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface Cache {
|
|
54
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
|
|
55
|
+
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface CanvasPath {
|
|
59
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
|
|
60
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface CanvasPathDrawingStyles {
|
|
64
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
|
|
65
|
+
setLineDash(segments: Iterable<number>): void;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface CustomStateSet extends Set<string> {
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface DOMRectList {
|
|
72
|
+
[Symbol.iterator](): ArrayIterator<DOMRect>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface DOMStringList {
|
|
76
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface DOMTokenList {
|
|
80
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
81
|
+
entries(): ArrayIterator<[number, string]>;
|
|
82
|
+
keys(): ArrayIterator<number>;
|
|
83
|
+
values(): ArrayIterator<string>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface DataTransferItemList {
|
|
87
|
+
[Symbol.iterator](): ArrayIterator<DataTransferItem>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface EventCounts extends ReadonlyMap<string, number> {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface FileList {
|
|
94
|
+
[Symbol.iterator](): ArrayIterator<File>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface FontFaceSet extends Set<FontFace> {
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
101
|
+
[Symbol.iterator](): FormDataIterator<T>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface FormData {
|
|
105
|
+
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
|
|
106
|
+
/** Returns an array of key, value pairs for every entry in the list. */
|
|
107
|
+
entries(): FormDataIterator<[string, FormDataEntryValue]>;
|
|
108
|
+
/** Returns a list of keys in the list. */
|
|
109
|
+
keys(): FormDataIterator<string>;
|
|
110
|
+
/** Returns a list of values in the list. */
|
|
111
|
+
values(): FormDataIterator<FormDataEntryValue>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface HTMLAllCollection {
|
|
115
|
+
[Symbol.iterator](): ArrayIterator<Element>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
interface HTMLCollectionBase {
|
|
119
|
+
[Symbol.iterator](): ArrayIterator<Element>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface HTMLCollectionOf<T extends Element> {
|
|
123
|
+
[Symbol.iterator](): ArrayIterator<T>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface HTMLFormElement {
|
|
127
|
+
[Symbol.iterator](): ArrayIterator<Element>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface HTMLSelectElement {
|
|
131
|
+
[Symbol.iterator](): ArrayIterator<HTMLOptionElement>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
135
|
+
[Symbol.iterator](): HeadersIterator<T>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface Headers {
|
|
139
|
+
[Symbol.iterator](): HeadersIterator<[string, string]>;
|
|
140
|
+
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
|
|
141
|
+
entries(): HeadersIterator<[string, string]>;
|
|
142
|
+
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
|
|
143
|
+
keys(): HeadersIterator<string>;
|
|
144
|
+
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
|
|
145
|
+
values(): HeadersIterator<string>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface Highlight extends Set<AbstractRange> {
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface HighlightRegistry extends Map<string, Highlight> {
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interface IDBDatabase {
|
|
155
|
+
/**
|
|
156
|
+
* 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.
|
|
157
|
+
*
|
|
158
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
159
|
+
*/
|
|
160
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface IDBObjectStore {
|
|
164
|
+
/**
|
|
165
|
+
* 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.
|
|
166
|
+
*
|
|
167
|
+
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
168
|
+
*
|
|
169
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
170
|
+
*/
|
|
171
|
+
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
interface ImageTrackList {
|
|
175
|
+
[Symbol.iterator](): ArrayIterator<ImageTrack>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface MIDIOutput {
|
|
182
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
|
|
183
|
+
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
interface MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
190
|
+
[Symbol.iterator](): MediaKeyStatusMapIterator<T>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface MediaKeyStatusMap {
|
|
194
|
+
[Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
|
|
195
|
+
entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
|
|
196
|
+
keys(): MediaKeyStatusMapIterator<BufferSource>;
|
|
197
|
+
values(): MediaKeyStatusMapIterator<MediaKeyStatus>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface MediaList {
|
|
201
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
interface MessageEvent<T = any> {
|
|
205
|
+
/** @deprecated */
|
|
206
|
+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
interface MimeTypeArray {
|
|
210
|
+
[Symbol.iterator](): ArrayIterator<MimeType>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface NamedNodeMap {
|
|
214
|
+
[Symbol.iterator](): ArrayIterator<Attr>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
interface Navigator {
|
|
218
|
+
/**
|
|
219
|
+
* Available only in secure contexts.
|
|
220
|
+
*
|
|
221
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
|
|
222
|
+
*/
|
|
223
|
+
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
|
|
224
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
|
|
225
|
+
vibrate(pattern: Iterable<number>): boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
interface NodeList {
|
|
229
|
+
[Symbol.iterator](): ArrayIterator<Node>;
|
|
230
|
+
/** Returns an array of key, value pairs for every entry in the list. */
|
|
231
|
+
entries(): ArrayIterator<[number, Node]>;
|
|
232
|
+
/** Returns an list of keys in the list. */
|
|
233
|
+
keys(): ArrayIterator<number>;
|
|
234
|
+
/** Returns an list of values in the list. */
|
|
235
|
+
values(): ArrayIterator<Node>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
interface NodeListOf<TNode extends Node> {
|
|
239
|
+
[Symbol.iterator](): ArrayIterator<TNode>;
|
|
240
|
+
/** Returns an array of key, value pairs for every entry in the list. */
|
|
241
|
+
entries(): ArrayIterator<[number, TNode]>;
|
|
242
|
+
/** Returns an list of keys in the list. */
|
|
243
|
+
keys(): ArrayIterator<number>;
|
|
244
|
+
/** Returns an list of values in the list. */
|
|
245
|
+
values(): ArrayIterator<TNode>;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface Plugin {
|
|
249
|
+
[Symbol.iterator](): ArrayIterator<MimeType>;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface PluginArray {
|
|
253
|
+
[Symbol.iterator](): ArrayIterator<Plugin>;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
interface RTCRtpTransceiver {
|
|
257
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
|
|
258
|
+
setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
interface SVGLengthList {
|
|
265
|
+
[Symbol.iterator](): ArrayIterator<SVGLength>;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
interface SVGNumberList {
|
|
269
|
+
[Symbol.iterator](): ArrayIterator<SVGNumber>;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface SVGPointList {
|
|
273
|
+
[Symbol.iterator](): ArrayIterator<DOMPoint>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface SVGStringList {
|
|
277
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
interface SVGTransformList {
|
|
281
|
+
[Symbol.iterator](): ArrayIterator<SVGTransform>;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
interface SourceBufferList {
|
|
285
|
+
[Symbol.iterator](): ArrayIterator<SourceBuffer>;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
interface SpeechRecognitionResult {
|
|
289
|
+
[Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
interface SpeechRecognitionResultList {
|
|
293
|
+
[Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
297
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
interface StylePropertyMapReadOnly {
|
|
301
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
302
|
+
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
303
|
+
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
304
|
+
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
interface StyleSheetList {
|
|
308
|
+
[Symbol.iterator](): ArrayIterator<CSSStyleSheet>;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
interface SubtleCrypto {
|
|
312
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
|
|
313
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
314
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
|
315
|
+
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
316
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
317
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
318
|
+
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
319
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
|
|
320
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
321
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
322
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
|
|
323
|
+
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
interface TextTrackCueList {
|
|
327
|
+
[Symbol.iterator](): ArrayIterator<TextTrackCue>;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface TextTrackList {
|
|
331
|
+
[Symbol.iterator](): ArrayIterator<TextTrack>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
interface TouchList {
|
|
335
|
+
[Symbol.iterator](): ArrayIterator<Touch>;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
339
|
+
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
interface URLSearchParams {
|
|
343
|
+
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
|
344
|
+
/** Returns an array of key, value pairs for every entry in the search params. */
|
|
345
|
+
entries(): URLSearchParamsIterator<[string, string]>;
|
|
346
|
+
/** Returns a list of keys in the search params. */
|
|
347
|
+
keys(): URLSearchParamsIterator<string>;
|
|
348
|
+
/** Returns a list of values in the search params. */
|
|
349
|
+
values(): URLSearchParamsIterator<string>;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
interface ViewTransitionTypeSet extends Set<string> {
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
interface WEBGL_draw_buffers {
|
|
356
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
|
|
357
|
+
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
interface WEBGL_multi_draw {
|
|
361
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
|
|
362
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
363
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
|
|
364
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
365
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
|
|
366
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
367
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
|
|
368
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
interface WebGL2RenderingContextBase {
|
|
372
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
373
|
+
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
|
374
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
375
|
+
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
|
376
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
377
|
+
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
|
378
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
|
379
|
+
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
380
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
381
|
+
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
382
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
383
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
|
|
384
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
385
|
+
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
386
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
387
|
+
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
388
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
|
389
|
+
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
390
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
391
|
+
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
392
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
393
|
+
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
394
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
395
|
+
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
396
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
397
|
+
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
398
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
399
|
+
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
400
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
401
|
+
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
402
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
403
|
+
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
404
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
405
|
+
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
406
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
407
|
+
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
408
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
409
|
+
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
410
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
411
|
+
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
412
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
413
|
+
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
interface WebGL2RenderingContextOverloads {
|
|
417
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
418
|
+
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
419
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
420
|
+
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
421
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
422
|
+
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
423
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
424
|
+
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
425
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
426
|
+
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
427
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
428
|
+
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
429
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
430
|
+
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
431
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
432
|
+
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
433
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
434
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
435
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
436
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
437
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
438
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
interface WebGLRenderingContextBase {
|
|
442
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
443
|
+
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
444
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
445
|
+
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
446
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
447
|
+
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
448
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
449
|
+
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
interface WebGLRenderingContextOverloads {
|
|
453
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
454
|
+
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
455
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
456
|
+
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
457
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
458
|
+
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
459
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
460
|
+
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
461
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
462
|
+
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
463
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
464
|
+
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
465
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
466
|
+
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
467
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
468
|
+
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
469
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
470
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
471
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
472
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
473
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
474
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
475
|
+
}
|