Skip to content

Commit 83efc9f

Browse files
Update LKG for 4.6.1-rc.
1 parent 85cd735 commit 83efc9f

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

+102786
-71832
lines changed

Diff for: lib/cs/diagnosticMessages.generated.json

+87-69
Large diffs are not rendered by default.

Diff for: lib/de/diagnosticMessages.generated.json

+90-72
Large diffs are not rendered by default.

Diff for: lib/es/diagnosticMessages.generated.json

+88-70
Large diffs are not rendered by default.

Diff for: lib/fr/diagnosticMessages.generated.json

+90-72
Large diffs are not rendered by default.

Diff for: lib/it/diagnosticMessages.generated.json

+90-72
Large diffs are not rendered by default.

Diff for: lib/ja/diagnosticMessages.generated.json

+90-72
Large diffs are not rendered by default.

Diff for: lib/ko/diagnosticMessages.generated.json

+87-69
Large diffs are not rendered by default.

Diff for: lib/lib.dom.d.ts

+1,403-2,331
Large diffs are not rendered by default.

Diff for: lib/lib.dom.iterable.d.ts

+31-58
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,11 @@ interface FontFaceSet extends Set<FontFace> {
7878

7979
interface FormData {
8080
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
81-
/**
82-
* Returns an array of key, value pairs for every entry in the list.
83-
*/
81+
/** Returns an array of key, value pairs for every entry in the list. */
8482
entries(): IterableIterator<[string, FormDataEntryValue]>;
85-
/**
86-
* Returns a list of keys in the list.
87-
*/
83+
/** Returns a list of keys in the list. */
8884
keys(): IterableIterator<string>;
89-
/**
90-
* Returns a list of values in the list.
91-
*/
85+
/** Returns a list of values in the list. */
9286
values(): IterableIterator<FormDataEntryValue>;
9387
}
9488

@@ -109,29 +103,21 @@ interface HTMLFormElement {
109103
}
110104

111105
interface HTMLSelectElement {
112-
[Symbol.iterator](): IterableIterator<Element>;
106+
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
113107
}
114108

115109
interface Headers {
116110
[Symbol.iterator](): IterableIterator<[string, string]>;
117-
/**
118-
* Returns an iterator allowing to go through all key/value pairs contained in this object.
119-
*/
111+
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
120112
entries(): IterableIterator<[string, string]>;
121-
/**
122-
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
123-
*/
113+
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
124114
keys(): IterableIterator<string>;
125-
/**
126-
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
127-
*/
115+
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
128116
values(): IterableIterator<string>;
129117
}
130118

131119
interface IDBDatabase {
132-
/**
133-
* 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.
134-
*/
120+
/** 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. */
135121
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
136122
}
137123

@@ -161,66 +147,52 @@ interface MessageEvent<T = any> {
161147
}
162148

163149
interface MimeTypeArray {
164-
[Symbol.iterator](): IterableIterator<any>;
150+
[Symbol.iterator](): IterableIterator<MimeType>;
165151
}
166152

167153
interface NamedNodeMap {
168154
[Symbol.iterator](): IterableIterator<Attr>;
169155
}
170156

171157
interface Navigator {
158+
/** Available only in secure contexts. */
172159
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
173160
vibrate(pattern: Iterable<number>): boolean;
174161
}
175162

176163
interface NodeList {
177164
[Symbol.iterator](): IterableIterator<Node>;
178-
/**
179-
* Returns an array of key, value pairs for every entry in the list.
180-
*/
165+
/** Returns an array of key, value pairs for every entry in the list. */
181166
entries(): IterableIterator<[number, Node]>;
182-
/**
183-
* Returns an list of keys in the list.
184-
*/
167+
/** Returns an list of keys in the list. */
185168
keys(): IterableIterator<number>;
186-
/**
187-
* Returns an list of values in the list.
188-
*/
169+
/** Returns an list of values in the list. */
189170
values(): IterableIterator<Node>;
190171
}
191172

192173
interface NodeListOf<TNode extends Node> {
193174
[Symbol.iterator](): IterableIterator<TNode>;
194-
/**
195-
* Returns an array of key, value pairs for every entry in the list.
196-
*/
175+
/** Returns an array of key, value pairs for every entry in the list. */
197176
entries(): IterableIterator<[number, TNode]>;
198-
/**
199-
* Returns an list of keys in the list.
200-
*/
177+
/** Returns an list of keys in the list. */
201178
keys(): IterableIterator<number>;
202-
/**
203-
* Returns an list of values in the list.
204-
*/
179+
/** Returns an list of values in the list. */
205180
values(): IterableIterator<TNode>;
206181
}
207182

208183
interface Plugin {
209-
[Symbol.iterator](): IterableIterator<undefined>;
184+
[Symbol.iterator](): IterableIterator<MimeType>;
210185
}
211186

212187
interface PluginArray {
213-
[Symbol.iterator](): IterableIterator<any>;
188+
[Symbol.iterator](): IterableIterator<Plugin>;
214189
}
215190

216-
interface RTCStatsReport extends ReadonlyMap<string, any> {
191+
interface RTCRtpTransceiver {
192+
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
217193
}
218194

219-
interface ReadableStream<R = any> {
220-
[Symbol.iterator](): IterableIterator<any>;
221-
entries(): IterableIterator<[number, any]>;
222-
keys(): IterableIterator<number>;
223-
values(): IterableIterator<any>;
195+
interface RTCStatsReport extends ReadonlyMap<string, any> {
224196
}
225197

226198
interface SVGLengthList {
@@ -283,24 +255,25 @@ interface TouchList {
283255

284256
interface URLSearchParams {
285257
[Symbol.iterator](): IterableIterator<[string, string]>;
286-
/**
287-
* Returns an array of key, value pairs for every entry in the search params.
288-
*/
258+
/** Returns an array of key, value pairs for every entry in the search params. */
289259
entries(): IterableIterator<[string, string]>;
290-
/**
291-
* Returns a list of keys in the search params.
292-
*/
260+
/** Returns a list of keys in the search params. */
293261
keys(): IterableIterator<string>;
294-
/**
295-
* Returns a list of values in the search params.
296-
*/
262+
/** Returns a list of values in the search params. */
297263
values(): IterableIterator<string>;
298264
}
299265

300266
interface WEBGL_draw_buffers {
301267
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
302268
}
303269

270+
interface WEBGL_multi_draw {
271+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
272+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
273+
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;
274+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
275+
}
276+
304277
interface WebGL2RenderingContextBase {
305278
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
306279
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;

Diff for: lib/lib.es2015.core.d.ts

+53-13
Original file line numberDiff line numberDiff line change
@@ -455,47 +455,87 @@ interface String {
455455

456456
/**
457457
* Returns an `<a>` HTML anchor element and sets the name attribute to the text value
458+
* @deprecated A legacy feature for browser compatibility
458459
* @param name
459460
*/
460461
anchor(name: string): string;
461462

462-
/** Returns a `<big>` HTML element */
463+
/**
464+
* Returns a `<big>` HTML element
465+
* @deprecated A legacy feature for browser compatibility
466+
*/
463467
big(): string;
464468

465-
/** Returns a `<blink>` HTML element */
469+
/**
470+
* Returns a `<blink>` HTML element
471+
* @deprecated A legacy feature for browser compatibility
472+
*/
466473
blink(): string;
467474

468-
/** Returns a `<b>` HTML element */
475+
/**
476+
* Returns a `<b>` HTML element
477+
* @deprecated A legacy feature for browser compatibility
478+
*/
469479
bold(): string;
470480

471-
/** Returns a `<tt>` HTML element */
481+
/**
482+
* Returns a `<tt>` HTML element
483+
* @deprecated A legacy feature for browser compatibility
484+
*/
472485
fixed(): string;
473486

474-
/** Returns a `<font>` HTML element and sets the color attribute value */
487+
/**
488+
* Returns a `<font>` HTML element and sets the color attribute value
489+
* @deprecated A legacy feature for browser compatibility
490+
*/
475491
fontcolor(color: string): string;
476492

477-
/** Returns a `<font>` HTML element and sets the size attribute value */
493+
/**
494+
* Returns a `<font>` HTML element and sets the size attribute value
495+
* @deprecated A legacy feature for browser compatibility
496+
*/
478497
fontsize(size: number): string;
479498

480-
/** Returns a `<font>` HTML element and sets the size attribute value */
499+
/**
500+
* Returns a `<font>` HTML element and sets the size attribute value
501+
* @deprecated A legacy feature for browser compatibility
502+
*/
481503
fontsize(size: string): string;
482504

483-
/** Returns an `<i>` HTML element */
505+
/**
506+
* Returns an `<i>` HTML element
507+
* @deprecated A legacy feature for browser compatibility
508+
*/
484509
italics(): string;
485510

486-
/** Returns an `<a>` HTML element and sets the href attribute value */
511+
/**
512+
* Returns an `<a>` HTML element and sets the href attribute value
513+
* @deprecated A legacy feature for browser compatibility
514+
*/
487515
link(url: string): string;
488516

489-
/** Returns a `<small>` HTML element */
517+
/**
518+
* Returns a `<small>` HTML element
519+
* @deprecated A legacy feature for browser compatibility
520+
*/
490521
small(): string;
491522

492-
/** Returns a `<strike>` HTML element */
523+
/**
524+
* Returns a `<strike>` HTML element
525+
* @deprecated A legacy feature for browser compatibility
526+
*/
493527
strike(): string;
494528

495-
/** Returns a `<sub>` HTML element */
529+
/**
530+
* Returns a `<sub>` HTML element
531+
* @deprecated A legacy feature for browser compatibility
532+
*/
496533
sub(): string;
497534

498-
/** Returns a `<sup>` HTML element */
535+
/**
536+
* Returns a `<sup>` HTML element
537+
* @deprecated A legacy feature for browser compatibility
538+
*/
499539
sup(): string;
500540
}
501541

Diff for: lib/lib.es2015.iterable.d.ts

+4-11
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ interface ReadonlyMap<K, V> {
157157
}
158158

159159
interface MapConstructor {
160-
new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
160+
new(): Map<any, any>;
161+
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
161162
}
162163

163164
interface WeakMap<K extends object, V> { }
@@ -223,23 +224,15 @@ interface PromiseConstructor {
223224
* @param values An iterable of Promises.
224225
* @returns A new Promise.
225226
*/
226-
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
227+
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
227228

228229
/**
229230
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
230231
* or rejected.
231232
* @param values An iterable of Promises.
232233
* @returns A new Promise.
233234
*/
234-
race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
235-
236-
/**
237-
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
238-
* or rejected.
239-
* @param values An iterable of Promises.
240-
* @returns A new Promise.
241-
*/
242-
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
235+
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
243236
}
244237

245238
interface String {

Diff for: lib/lib.es2015.promise.d.ts

+2-74
Original file line numberDiff line numberDiff line change
@@ -38,79 +38,7 @@ interface PromiseConstructor {
3838
* @param values An array of Promises.
3939
* @returns A new Promise.
4040
*/
41-
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
42-
43-
/**
44-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
45-
* resolve, or rejected when any Promise is rejected.
46-
* @param values An array of Promises.
47-
* @returns A new Promise.
48-
*/
49-
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
50-
51-
/**
52-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
53-
* resolve, or rejected when any Promise is rejected.
54-
* @param values An array of Promises.
55-
* @returns A new Promise.
56-
*/
57-
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
58-
59-
/**
60-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
61-
* resolve, or rejected when any Promise is rejected.
62-
* @param values An array of Promises.
63-
* @returns A new Promise.
64-
*/
65-
all<T1, T2, T3, T4, T5, T6, T7>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
66-
67-
/**
68-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
69-
* resolve, or rejected when any Promise is rejected.
70-
* @param values An array of Promises.
71-
* @returns A new Promise.
72-
*/
73-
all<T1, T2, T3, T4, T5, T6>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
74-
75-
/**
76-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
77-
* resolve, or rejected when any Promise is rejected.
78-
* @param values An array of Promises.
79-
* @returns A new Promise.
80-
*/
81-
all<T1, T2, T3, T4, T5>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
82-
83-
/**
84-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
85-
* resolve, or rejected when any Promise is rejected.
86-
* @param values An array of Promises.
87-
* @returns A new Promise.
88-
*/
89-
all<T1, T2, T3, T4>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<[T1, T2, T3, T4]>;
90-
91-
/**
92-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
93-
* resolve, or rejected when any Promise is rejected.
94-
* @param values An array of Promises.
95-
* @returns A new Promise.
96-
*/
97-
all<T1, T2, T3>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
98-
99-
/**
100-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
101-
* resolve, or rejected when any Promise is rejected.
102-
* @param values An array of Promises.
103-
* @returns A new Promise.
104-
*/
105-
all<T1, T2>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
106-
107-
/**
108-
* Creates a Promise that is resolved with an array of results when all of the provided Promises
109-
* resolve, or rejected when any Promise is rejected.
110-
* @param values An array of Promises.
111-
* @returns A new Promise.
112-
*/
113-
all<T>(values: readonly (T | PromiseLike<T>)[]): Promise<T[]>;
41+
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
11442

11543
// see: lib.es2015.iterable.d.ts
11644
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
@@ -121,7 +49,7 @@ interface PromiseConstructor {
12149
* @param values An array of Promises.
12250
* @returns A new Promise.
12351
*/
124-
race<T>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;
52+
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
12553

12654
// see: lib.es2015.iterable.d.ts
12755
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;

0 commit comments

Comments
 (0)