@@ -134,6 +134,12 @@ interface Headers {
134
134
values ( ) : IterableIterator < string > ;
135
135
}
136
136
137
+ interface Highlight extends Set < AbstractRange > {
138
+ }
139
+
140
+ interface HighlightRegistry extends Map < string , Highlight > {
141
+ }
142
+
137
143
interface IDBDatabase {
138
144
/**
139
145
* 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.
@@ -287,6 +293,7 @@ interface SubtleCrypto {
287
293
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
288
294
deriveKey ( algorithm : AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params , baseKey : CryptoKey , derivedKeyType : AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKey > ;
289
295
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
296
+ generateKey ( algorithm : "Ed25519" , extractable : boolean , keyUsages : ReadonlyArray < "sign" | "verify" > ) : Promise < CryptoKeyPair > ;
290
297
generateKey ( algorithm : RsaHashedKeyGenParams | EcKeyGenParams , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKeyPair > ;
291
298
generateKey ( algorithm : AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKey > ;
292
299
generateKey ( algorithm : AlgorithmIdentifier , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKeyPair | CryptoKey > ;
@@ -326,22 +333,22 @@ interface WEBGL_draw_buffers {
326
333
327
334
interface WEBGL_multi_draw {
328
335
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
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 ;
336
+ multiDrawArraysInstancedWEBGL ( mode : GLenum , firstsList : Int32Array | Iterable < GLint > , firstsOffset : number , countsList : Int32Array | Iterable < GLsizei > , countsOffset : number , instanceCountsList : Int32Array | Iterable < GLsizei > , instanceCountsOffset : number , drawcount : GLsizei ) : void ;
330
337
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
331
- multiDrawArraysWEBGL ( mode : GLenum , firstsList : Int32Array | Iterable < GLint > , firstsOffset : GLuint , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , drawcount : GLsizei ) : void ;
338
+ multiDrawArraysWEBGL ( mode : GLenum , firstsList : Int32Array | Iterable < GLint > , firstsOffset : number , countsList : Int32Array | Iterable < GLsizei > , countsOffset : number , drawcount : GLsizei ) : void ;
332
339
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
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 ;
340
+ 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 ;
334
341
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
335
- multiDrawElementsWEBGL ( mode : GLenum , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , type : GLenum , offsetsList : Int32Array | Iterable < GLsizei > , offsetsOffset : GLuint , drawcount : GLsizei ) : void ;
342
+ multiDrawElementsWEBGL ( mode : GLenum , countsList : Int32Array | Iterable < GLsizei > , countsOffset : number , type : GLenum , offsetsList : Int32Array | Iterable < GLsizei > , offsetsOffset : number , drawcount : GLsizei ) : void ;
336
343
}
337
344
338
345
interface WebGL2RenderingContextBase {
339
346
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
340
- clearBufferfv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLfloat > , srcOffset ?: GLuint ) : void ;
347
+ clearBufferfv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLfloat > , srcOffset ?: number ) : void ;
341
348
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
342
- clearBufferiv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLint > , srcOffset ?: GLuint ) : void ;
349
+ clearBufferiv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLint > , srcOffset ?: number ) : void ;
343
350
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
344
- clearBufferuiv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLuint > , srcOffset ?: GLuint ) : void ;
351
+ clearBufferuiv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLuint > , srcOffset ?: number ) : void ;
345
352
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
346
353
drawBuffers ( buffers : Iterable < GLenum > ) : void ;
347
354
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
@@ -355,25 +362,25 @@ interface WebGL2RenderingContextBase {
355
362
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
356
363
transformFeedbackVaryings ( program : WebGLProgram , varyings : Iterable < string > , bufferMode : GLenum ) : void ;
357
364
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
358
- uniform1uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
365
+ uniform1uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
359
366
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
360
- uniform2uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
367
+ uniform2uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
361
368
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
362
- uniform3uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
369
+ uniform3uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
363
370
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
364
- uniform4uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
371
+ uniform4uiv ( location : WebGLUniformLocation | null , data : Iterable < GLuint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
365
372
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
366
- uniformMatrix2x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
373
+ uniformMatrix2x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
367
374
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
368
- uniformMatrix2x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
375
+ uniformMatrix2x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
369
376
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
370
- uniformMatrix3x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
377
+ uniformMatrix3x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
371
378
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
372
- uniformMatrix3x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
379
+ uniformMatrix3x4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
373
380
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
374
- uniformMatrix4x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
381
+ uniformMatrix4x2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
375
382
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
376
- uniformMatrix4x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
383
+ uniformMatrix4x3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
377
384
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
378
385
vertexAttribI4iv ( index : GLuint , values : Iterable < GLint > ) : void ;
379
386
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
@@ -382,27 +389,27 @@ interface WebGL2RenderingContextBase {
382
389
383
390
interface WebGL2RenderingContextOverloads {
384
391
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
385
- uniform1fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
392
+ uniform1fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
386
393
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
387
- uniform1iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
394
+ uniform1iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
388
395
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
389
- uniform2fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
396
+ uniform2fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
390
397
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
391
- uniform2iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
398
+ uniform2iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
392
399
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
393
- uniform3fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
400
+ uniform3fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
394
401
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
395
- uniform3iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
402
+ uniform3iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
396
403
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
397
- uniform4fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
404
+ uniform4fv ( location : WebGLUniformLocation | null , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
398
405
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
399
- uniform4iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
406
+ uniform4iv ( location : WebGLUniformLocation | null , data : Iterable < GLint > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
400
407
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
401
- uniformMatrix2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
408
+ uniformMatrix2fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
402
409
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
403
- uniformMatrix3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
410
+ uniformMatrix3fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
404
411
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
405
- uniformMatrix4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: GLuint , srcLength ?: GLuint ) : void ;
412
+ uniformMatrix4fv ( location : WebGLUniformLocation | null , transpose : GLboolean , data : Iterable < GLfloat > , srcOffset ?: number , srcLength ?: GLuint ) : void ;
406
413
}
407
414
408
415
interface WebGLRenderingContextBase {
0 commit comments