1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | interface Cache {
|
26 | addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
27 | }
|
28 |
|
29 | interface DOMStringList {
|
30 | [Symbol.iterator](): IterableIterator<string>;
|
31 | }
|
32 |
|
33 | interface FileList {
|
34 | [Symbol.iterator](): IterableIterator<File>;
|
35 | }
|
36 |
|
37 | interface FontFaceSet extends Set<FontFace> {
|
38 | }
|
39 |
|
40 | interface FormData {
|
41 | [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
42 |
|
43 | entries(): IterableIterator<[string, FormDataEntryValue]>;
|
44 |
|
45 | keys(): IterableIterator<string>;
|
46 |
|
47 | values(): IterableIterator<FormDataEntryValue>;
|
48 | }
|
49 |
|
50 | interface Headers {
|
51 | [Symbol.iterator](): IterableIterator<[string, string]>;
|
52 |
|
53 | entries(): IterableIterator<[string, string]>;
|
54 |
|
55 | keys(): IterableIterator<string>;
|
56 |
|
57 | values(): IterableIterator<string>;
|
58 | }
|
59 |
|
60 | interface IDBDatabase {
|
61 |
|
62 | transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
63 | }
|
64 |
|
65 | interface IDBObjectStore {
|
66 | |
67 |
|
68 |
|
69 |
|
70 |
|
71 | createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
72 | }
|
73 |
|
74 | interface MessageEvent<T = any> {
|
75 |
|
76 | initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
77 | }
|
78 |
|
79 | interface SubtleCrypto {
|
80 | deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
81 | generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
82 | generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
83 | generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
84 | importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
85 | importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
86 | 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>;
|
87 | }
|
88 |
|
89 | interface URLSearchParams {
|
90 | [Symbol.iterator](): IterableIterator<[string, string]>;
|
91 |
|
92 | entries(): IterableIterator<[string, string]>;
|
93 |
|
94 | keys(): IterableIterator<string>;
|
95 |
|
96 | values(): IterableIterator<string>;
|
97 | }
|
98 |
|
99 | interface WEBGL_draw_buffers {
|
100 | drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
101 | }
|
102 |
|
103 | interface WEBGL_multi_draw {
|
104 | multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
105 | multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
106 | multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
107 | multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
108 | }
|
109 |
|
110 | interface WebGL2RenderingContextBase {
|
111 | clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
112 | clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
113 | clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
|
114 | drawBuffers(buffers: Iterable<GLenum>): void;
|
115 | getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
116 | getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
|
117 | invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
118 | invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
119 | transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
120 | uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
121 | uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
122 | uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
123 | uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
124 | uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
125 | uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
126 | uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
127 | uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
128 | uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
129 | uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
130 | vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
131 | vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
132 | }
|
133 |
|
134 | interface WebGL2RenderingContextOverloads {
|
135 | uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
136 | uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
137 | uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
138 | uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
139 | uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
140 | uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
141 | uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
142 | uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
143 | uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
144 | uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
145 | uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
146 | }
|
147 |
|
148 | interface WebGLRenderingContextBase {
|
149 | vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
150 | vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
151 | vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
152 | vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
153 | }
|
154 |
|
155 | interface WebGLRenderingContextOverloads {
|
156 | uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
157 | uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
158 | uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
159 | uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
160 | uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
161 | uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
162 | uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
163 | uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
164 | uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
165 | uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
166 | uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
167 | }
|