|
| 1 | +///////////////////////////// |
| 2 | +/// Worker Iterable APIs |
| 3 | +///////////////////////////// |
| 4 | + |
| 5 | +interface Cache { |
| 6 | + addAll(requests: Iterable<RequestInfo>): Promise<void>; |
| 7 | +} |
| 8 | + |
| 9 | +interface CanvasPathDrawingStyles { |
| 10 | + setLineDash(segments: Iterable<number>): void; |
| 11 | +} |
| 12 | + |
| 13 | +interface DOMStringList { |
| 14 | + [Symbol.iterator](): IterableIterator<string>; |
| 15 | +} |
| 16 | + |
| 17 | +interface FileList { |
| 18 | + [Symbol.iterator](): IterableIterator<File>; |
| 19 | +} |
| 20 | + |
| 21 | +interface FormData { |
| 22 | + [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; |
| 23 | + /** |
| 24 | + * Returns an array of key, value pairs for every entry in the list. |
| 25 | + */ |
| 26 | + entries(): IterableIterator<[string, FormDataEntryValue]>; |
| 27 | + /** |
| 28 | + * Returns a list of keys in the list. |
| 29 | + */ |
| 30 | + keys(): IterableIterator<string>; |
| 31 | + /** |
| 32 | + * Returns a list of values in the list. |
| 33 | + */ |
| 34 | + values(): IterableIterator<FormDataEntryValue>; |
| 35 | +} |
| 36 | + |
| 37 | +interface Headers { |
| 38 | + [Symbol.iterator](): IterableIterator<[string, string]>; |
| 39 | + /** |
| 40 | + * Returns an iterator allowing to go through all key/value pairs contained in this object. |
| 41 | + */ |
| 42 | + entries(): IterableIterator<[string, string]>; |
| 43 | + /** |
| 44 | + * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. |
| 45 | + */ |
| 46 | + keys(): IterableIterator<string>; |
| 47 | + /** |
| 48 | + * Returns an iterator allowing to go through all values of the key/value pairs contained in this object. |
| 49 | + */ |
| 50 | + values(): IterableIterator<string>; |
| 51 | +} |
| 52 | + |
| 53 | +interface IDBObjectStore { |
| 54 | + /** |
| 55 | + * 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. |
| 56 | + * |
| 57 | + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. |
| 58 | + */ |
| 59 | + createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; |
| 60 | +} |
| 61 | + |
| 62 | +interface URLSearchParams { |
| 63 | + [Symbol.iterator](): IterableIterator<[string, string]>; |
| 64 | + /** |
| 65 | + * Returns an array of key, value pairs for every entry in the search params. |
| 66 | + */ |
| 67 | + entries(): IterableIterator<[string, string]>; |
| 68 | + /** |
| 69 | + * Returns a list of keys in the search params. |
| 70 | + */ |
| 71 | + keys(): IterableIterator<string>; |
| 72 | + /** |
| 73 | + * Returns a list of values in the search params. |
| 74 | + */ |
| 75 | + values(): IterableIterator<string>; |
| 76 | +} |
| 77 | + |
| 78 | +interface WEBGL_draw_buffers { |
| 79 | + drawBuffersWEBGL(buffers: Iterable<GLenum>): void; |
| 80 | +} |
| 81 | + |
| 82 | +interface WebGL2RenderingContextBase { |
| 83 | + clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void; |
| 84 | + clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void; |
| 85 | + clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void; |
| 86 | + drawBuffers(buffers: Iterable<GLenum>): void; |
| 87 | + getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; |
| 88 | + getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; |
| 89 | + invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; |
| 90 | + invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; |
| 91 | + transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; |
| 92 | + uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 93 | + uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 94 | + uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 95 | + uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 96 | + uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 97 | + uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 98 | + uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 99 | + uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 100 | + uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 101 | + uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 102 | + vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; |
| 103 | + vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; |
| 104 | +} |
| 105 | + |
| 106 | +interface WebGL2RenderingContextOverloads { |
| 107 | + uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 108 | + uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 109 | + uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 110 | + uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 111 | + uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 112 | + uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 113 | + uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 114 | + uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 115 | + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 116 | + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 117 | + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; |
| 118 | +} |
| 119 | + |
| 120 | +interface WebGLRenderingContextBase { |
| 121 | + vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; |
| 122 | + vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; |
| 123 | + vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; |
| 124 | + vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; |
| 125 | +} |
| 126 | + |
| 127 | +interface WebGLRenderingContextOverloads { |
| 128 | + uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; |
| 129 | + uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; |
| 130 | + uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; |
| 131 | + uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; |
| 132 | + uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; |
| 133 | + uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; |
| 134 | + uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; |
| 135 | + uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; |
| 136 | + uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; |
| 137 | + uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; |
| 138 | + uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; |
| 139 | +} |
0 commit comments