3
3
/////////////////////////////
4
4
5
5
interface AudioParam {
6
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
6
7
setValueCurveAtTime ( values : Iterable < number > , startTime : number , duration : number ) : AudioParam ;
7
8
}
8
9
9
10
interface AudioParamMap extends ReadonlyMap < string , AudioParam > {
10
11
}
11
12
12
13
interface BaseAudioContext {
14
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
13
15
createIIRFilter ( feedforward : Iterable < number > , feedback : Iterable < number > ) : IIRFilterNode ;
16
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
14
17
createPeriodicWave ( real : Iterable < number > , imag : Iterable < number > , constraints ?: PeriodicWaveConstraints ) : PeriodicWave ;
15
18
}
16
19
@@ -48,14 +51,17 @@ interface CSSUnparsedValue {
48
51
}
49
52
50
53
interface Cache {
54
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
51
55
addAll ( requests : Iterable < RequestInfo > ) : Promise < void > ;
52
56
}
53
57
54
58
interface CanvasPath {
59
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
55
60
roundRect ( x : number , y : number , w : number , h : number , radii ?: number | DOMPointInit | Iterable < number | DOMPointInit > ) : void ;
56
61
}
57
62
58
63
interface CanvasPathDrawingStyles {
64
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
59
65
setLineDash ( segments : Iterable < number > ) : void ;
60
66
}
61
67
@@ -129,7 +135,11 @@ interface Headers {
129
135
}
130
136
131
137
interface IDBDatabase {
132
- /** 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. */
138
+ /**
139
+ * 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.
140
+ *
141
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
142
+ */
133
143
transaction ( storeNames : string | Iterable < string > , mode ?: IDBTransactionMode , options ?: IDBTransactionOptions ) : IDBTransaction ;
134
144
}
135
145
@@ -138,6 +148,8 @@ interface IDBObjectStore {
138
148
* 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.
139
149
*
140
150
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
151
+ *
152
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
141
153
*/
142
154
createIndex ( name : string , keyPath : string | Iterable < string > , options ?: IDBIndexParameters ) : IDBIndex ;
143
155
}
@@ -146,6 +158,7 @@ interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
146
158
}
147
159
148
160
interface MIDIOutput {
161
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
149
162
send ( data : Iterable < number > , timestamp ?: DOMHighResTimeStamp ) : void ;
150
163
}
151
164
@@ -164,7 +177,11 @@ interface MediaList {
164
177
}
165
178
166
179
interface MessageEvent < T = any > {
167
- /** @deprecated */
180
+ /**
181
+ * @deprecated
182
+ *
183
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
184
+ */
168
185
initMessageEvent ( type : string , bubbles ?: boolean , cancelable ?: boolean , data ?: any , origin ?: string , lastEventId ?: string , source ?: MessageEventSource | null , ports ?: Iterable < MessagePort > ) : void ;
169
186
}
170
187
@@ -177,8 +194,13 @@ interface NamedNodeMap {
177
194
}
178
195
179
196
interface Navigator {
180
- /** Available only in secure contexts. */
197
+ /**
198
+ * Available only in secure contexts.
199
+ *
200
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
201
+ */
181
202
requestMediaKeySystemAccess ( keySystem : string , supportedConfigurations : Iterable < MediaKeySystemConfiguration > ) : Promise < MediaKeySystemAccess > ;
203
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
182
204
vibrate ( pattern : Iterable < number > ) : boolean ;
183
205
}
184
206
@@ -211,6 +233,7 @@ interface PluginArray {
211
233
}
212
234
213
235
interface RTCRtpTransceiver {
236
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
214
237
setCodecPreferences ( codecs : Iterable < RTCRtpCodecCapability > ) : void ;
215
238
}
216
239
@@ -261,12 +284,16 @@ interface StyleSheetList {
261
284
}
262
285
263
286
interface SubtleCrypto {
287
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
264
288
deriveKey ( algorithm : AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params , baseKey : CryptoKey , derivedKeyType : AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKey > ;
289
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
265
290
generateKey ( algorithm : RsaHashedKeyGenParams | EcKeyGenParams , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKeyPair > ;
266
291
generateKey ( algorithm : AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKey > ;
267
292
generateKey ( algorithm : AlgorithmIdentifier , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKeyPair | CryptoKey > ;
293
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
268
294
importKey ( format : "jwk" , keyData : JsonWebKey , algorithm : AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKey > ;
269
295
importKey ( format : Exclude < KeyFormat , "jwk" > , keyData : BufferSource , algorithm : AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKey > ;
296
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
270
297
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 > ;
271
298
}
272
299
@@ -293,71 +320,123 @@ interface URLSearchParams {
293
320
}
294
321
295
322
interface WEBGL_draw_buffers {
323
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
296
324
drawBuffersWEBGL ( buffers : Iterable < GLenum > ) : void ;
297
325
}
298
326
299
327
interface WEBGL_multi_draw {
328
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
300
329
multiDrawArraysInstancedWEBGL ( mode : GLenum , firstsList : Int32Array | Iterable < GLint > , firstsOffset : GLuint , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , instanceCountsList : Int32Array | Iterable < GLsizei > , instanceCountsOffset : GLuint , drawcount : GLsizei ) : void ;
330
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
301
331
multiDrawArraysWEBGL ( mode : GLenum , firstsList : Int32Array | Iterable < GLint > , firstsOffset : GLuint , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , drawcount : GLsizei ) : void ;
332
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
302
333
multiDrawElementsInstancedWEBGL ( mode : GLenum , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , type : GLenum , offsetsList : Int32Array | Iterable < GLsizei > , offsetsOffset : GLuint , instanceCountsList : Int32Array | Iterable < GLsizei > , instanceCountsOffset : GLuint , drawcount : GLsizei ) : void ;
334
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
303
335
multiDrawElementsWEBGL ( mode : GLenum , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , type : GLenum , offsetsList : Int32Array | Iterable < GLsizei > , offsetsOffset : GLuint , drawcount : GLsizei ) : void ;
304
336
}
305
337
306
338
interface WebGL2RenderingContextBase {
339
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
307
340
clearBufferfv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLfloat > , srcOffset ?: GLuint ) : void ;
341
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
308
342
clearBufferiv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLint > , srcOffset ?: GLuint ) : void ;
343
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
309
344
clearBufferuiv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLuint > , srcOffset ?: GLuint ) : void ;
345
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
310
346
drawBuffers ( buffers : Iterable < GLenum > ) : void ;
347
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
311
348
getActiveUniforms ( program : WebGLProgram , uniformIndices : Iterable < GLuint > , pname : GLenum ) : any ;
349
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
312
350
getUniformIndices ( program : WebGLProgram , uniformNames : Iterable < string > ) : Iterable < GLuint > | null ;
351
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
313
352
invalidateFramebuffer ( target : GLenum , attachments : Iterable < GLenum > ) : void ;
353
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
314
354
invalidateSubFramebuffer ( target : GLenum , attachments : Iterable < GLenum > , x : GLint , y : GLint , width : GLsizei , height : GLsizei ) : void ;
355
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
315
356
transformFeedbackVaryings ( program : WebGLProgram , varyings : Iterable < string > , bufferMode : GLenum ) : void ;
357
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
316
358
uniform1uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
359
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
317
360
uniform2uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
361
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
318
362
uniform3uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
363
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
319
364
uniform4uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
365
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
320
366
uniformMatrix2x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
367
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
321
368
uniformMatrix2x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
369
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
322
370
uniformMatrix3x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
371
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
323
372
uniformMatrix3x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
373
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
324
374
uniformMatrix4x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
375
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
325
376
uniformMatrix4x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
377
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
326
378
vertexAttribI4iv ( index : GLuint , values : Iterable < GLint > ) : void ;
379
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
327
380
vertexAttribI4uiv ( index : GLuint , values : Iterable < GLuint > ) : void ;
328
381
}
329
382
330
383
interface WebGL2RenderingContextOverloads {
384
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
331
385
uniform1fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
386
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
332
387
uniform1iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
388
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
333
389
uniform2fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
390
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
334
391
uniform2iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
392
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
335
393
uniform3fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
394
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
336
395
uniform3iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
396
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
337
397
uniform4fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
398
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
338
399
uniform4iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
400
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
339
401
uniformMatrix2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
402
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
340
403
uniformMatrix3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
404
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
341
405
uniformMatrix4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
342
406
}
343
407
344
408
interface WebGLRenderingContextBase {
409
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
345
410
vertexAttrib1fv ( index : GLuint , values : Iterable < GLfloat > ) : void ;
411
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
346
412
vertexAttrib2fv ( index : GLuint , values : Iterable < GLfloat > ) : void ;
413
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
347
414
vertexAttrib3fv ( index : GLuint , values : Iterable < GLfloat > ) : void ;
415
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
348
416
vertexAttrib4fv ( index : GLuint , values : Iterable < GLfloat > ) : void ;
349
417
}
350
418
351
419
interface WebGLRenderingContextOverloads {
420
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
352
421
uniform1fv ( location : WebGLUniformLocation | null , v : Iterable < GLfloat > ) : void ;
422
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
353
423
uniform1iv ( location : WebGLUniformLocation | null , v : Iterable < GLint > ) : void ;
424
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
354
425
uniform2fv ( location : WebGLUniformLocation | null , v : Iterable < GLfloat > ) : void ;
426
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
355
427
uniform2iv ( location : WebGLUniformLocation | null , v : Iterable < GLint > ) : void ;
428
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
356
429
uniform3fv ( location : WebGLUniformLocation | null , v : Iterable < GLfloat > ) : void ;
430
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
357
431
uniform3iv ( location : WebGLUniformLocation | null , v : Iterable < GLint > ) : void ;
432
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
358
433
uniform4fv ( location : WebGLUniformLocation | null , v : Iterable < GLfloat > ) : void ;
434
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
359
435
uniform4iv ( location : WebGLUniformLocation | null , v : Iterable < GLint > ) : void ;
436
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
360
437
uniformMatrix2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , value : Iterable < GLfloat > ) : void ;
438
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
361
439
uniformMatrix3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , value : Iterable < GLfloat > ) : void ;
440
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
362
441
uniformMatrix4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , value : Iterable < GLfloat > ) : void ;
363
442
}
0 commit comments