8000 Update DOM from TSJS-lib-generator (#32335) · microsoft/TypeScript@5289f2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5289f2e

Browse files
authored
Update DOM from TSJS-lib-generator (#32335)
* Update DOM from TSJS-lib-generator 1. Update Navigator and other small updates. 2. Make ProgressEvent generic. 3. Make `window: Window & typeof globalThis`. 4. Add types: * CSS Overflow * CSS Masking * Web Authentication * WebGL 2 The big change is that `window` now includes globals in its type via `typeof globalThis`. This helps some codebases a lot, such as chrome-devtools-frontend. * Update baselines
1 parent 00e7d9c commit 5289f2e

File tree

45 files changed

+3819
-1581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3819
-1581
lines changed

src/lib/dom.generated.d.ts

Lines changed: 2470 additions & 1308 deletions
Large diffs are not rendered by default.

src/lib/dom.iterable.generated.d.ts

Lines changed: 76 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ interface FileList {
6363

6464
interface FormData {
6565
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
66-
/**
67-
* Returns an array of key, value pairs for every entry in the list.
66+
/**
67+
* Returns an array of key, value pairs for every entry in the list.
6868
*/
6969
entries(): IterableIterator<[string, FormDataEntryValue]>;
70-
/**
71-
* Returns a list of keys in the list.
70+
/**
71+
* Returns a list of keys in the list.
7272
*/
7373
keys(): IterableIterator<string>;
74-
/**
75-
* Returns a list of values in the list.
74+
/**
75+
* Returns a list of values in the list.
7676
*/
7777
values(): IterableIterator<FormDataEntryValue>;
7878
}
@@ -99,16 +99,16 @@ interface HTMLSelectElement {
9999

100100
interface Headers {
101101
[Symbol.iterator](): IterableIterator<[string, string]>;
102-
/**
103-
* Returns an iterator allowing to go through all key/value pairs contained in this object.
102+
/**
103+
* Returns an iterator allowing to go through all key/value pairs contained in this object.
104104
*/
105105
entries(): IterableIterator<[string, string]>;
106-
/**
107-
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
106+
/**
107+
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
108108
*/
109109
keys(): IterableIterator<string>;
110-
/**
111-
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
110+
/**
111+
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
112112
*/
113113
values(): IterableIterator<string>;
114114
}
@@ -134,7 +134,7 @@ interface MediaList {
134134
}
135135

136136
interface MimeTypeArray {
137-
[Symbol.iterator](): IterableIterator<Plugin>;
137+
[Symbol.iterator](): IterableIterator<MimeType>;
138138
}
139139

140140
interface NamedNodeMap {
@@ -147,32 +147,32 @@ interface Navigator {
147147

148148
interface NodeList {
149149
[Symbol.iterator](): IterableIterator<Node>;
150-
/**
151-
* Returns an array of key, value pairs for every entry in the list.
150+
/**
151+
* Returns an array of key, value pairs for every entry in the list.
152152
*/
153153
entries(): IterableIterator<[number, Node]>;
154-
/**
155-
* Returns an list of keys in the list.
154+
/**
155+
* Returns an list of keys in the list.
156156
*/
157157
keys(): IterableIterator<number>;
158-
/**
159-
* Returns an list of values in the list.
158+
/**
159+
* Returns an list of values in the list.
160160
*/
161161
values(): IterableIterator<Node>;
162162
}
163163

164164
interface NodeListOf<TNode extends Node> {
165165
[Symbol.iterator](): IterableIterator<TNode>;
166-
/**
167-
* Returns an array of key, value pairs for every entry in the list.
166+
/**
167+
* Returns an array of key, value pairs for every entry in the list.
168168
*/
169169
entries(): IterableIterator<[number, TNode]>;
170-
/**
171-
* Returns an list of keys in the list.
170+
/**
171+
* Returns an list of keys in the list.
172172
*/
173173
keys(): IterableIterator<number>;
174-
/**
175-
* Returns an list of values in the list.
174+
/**
175+
* Returns an list of values in the list.
176176
*/
177177
values(): IterableIterator<TNode>;
178178
}
@@ -242,16 +242,16 @@ interface TouchList {
242242

243243
interface URLSearchParams {
244244
[Symbol.iterator](): IterableIterator<[string, string]>;
245-
/**
246-
* Returns an array of key, value pairs for every entry in the search params.
245+
/**
246+
* Returns an array of key, value pairs for every entry in the search params.
247247
*/
248248
entries(): IterableIterator<[string, string]>;
249-
/**
250-
* Returns a list of keys in the search params.
249+
/**
250+
* Returns a list of keys in the search params.
251251
*/
252252
keys(): IterableIterator<string>;
253-
/**
254-
* Returns a list of values in the search params.
253+
/**
254+
* Returns a list of values in the search params.
255255
*/
256256
values(): IterableIterator<string>;
257257
}
@@ -272,7 +272,52 @@ interface WebAuthentication {
272272
makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
273273
}
274274

275+
interface WebGL2RenderingContextBase {
276+
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
277+
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
278+
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
279+
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
280+
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
281+
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
282+
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
283+
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
284+
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
285+
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
286+
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
287+
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
288+
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
289+
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
290+
drawBuffers(buffers: Iterable<GLenum>): void;
291+
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
292+
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
293+
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
294+
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
295+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
296+
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
297+
}
298+
299+
interface WebGL2RenderingContextOverloads {
300+
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
301+
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
302+
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
303+
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
304+
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
305+
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
306+
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
307+
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
308+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
309+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
310+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
311+
}
312+
275313
interface WebGLRenderingContextBase {
314+
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
315+
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
316+
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
317+
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
318+
}
319+
320+
interface WebGLRenderingContextOverloads {
276321
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
277322
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
278323
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
@@ -284,8 +329,4 @@ interface WebGLRenderingContextBase {
284329
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
285330
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
286331
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
287-
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
288-
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
289-
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
290-
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
291332
}

0 commit comments

Comments
 (0)
0