Skip to content

Commit 6e62273

Browse files
Bump version to 4.7.0-beta and LKG
1 parent 16b6f0f commit 6e62273

Some content is hidden

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

52 files changed

+128218
-84646
lines changed

lib/cs/diagnosticMessages.generated.json

+146-110
Large diffs are not rendered by default.

lib/de/diagnosticMessages.generated.json

+148-112
Large diffs are not rendered by default.

lib/es/diagnosticMessages.generated.json

+139-103
Large diffs are not rendered by default.

lib/fr/diagnosticMessages.generated.json

+130-94
Large diffs are not rendered by default.

lib/it/diagnosticMessages.generated.json

+150-114
Large diffs are not rendered by default.

lib/ja/diagnosticMessages.generated.json

+129-93
Large diffs are not rendered by default.

lib/ko/diagnosticMessages.generated.json

+146-110
Large diffs are not rendered by default.

lib/lib.dom.d.ts

+1,807-2,362
Large diffs are not rendered by default.

lib/lib.dom.iterable.d.ts

+47-61
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ interface DataTransferItemList {
6969
[Symbol.iterator](): IterableIterator<DataTransferItem>;
7070
}
7171

72+
interface EventCounts extends ReadonlyMap<string, number> {
73+
}
74+
7275
interface FileList {
7376
[Symbol.iterator](): IterableIterator<File>;
7477
}
@@ -78,17 +81,11 @@ interface FontFaceSet extends Set<FontFace> {
7881

7982
interface FormData {
8083
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
81-
/**
82-
* Returns an array of key, value pairs for every entry in the list.
83-
*/
84+
/** Returns an array of key, value pairs for every entry in the list. */
8485
entries(): IterableIterator<[string, FormDataEntryValue]>;
85-
/**
86-
* Returns a list of keys in the list.
87-
*/
86+
/** Returns a list of keys in the list. */
8887
keys(): IterableIterator<string>;
89-
/**
90-
* Returns a list of values in the list.
91-
*/
88+
/** Returns a list of values in the list. */
9289
values(): IterableIterator<FormDataEntryValue>;
9390
}
9491

@@ -109,29 +106,21 @@ interface HTMLFormElement {
109106
}
110107

111108
interface HTMLSelectElement {
112-
[Symbol.iterator](): IterableIterator<Element>;
109+
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
113110
}
114111

115112
interface Headers {
116113
[Symbol.iterator](): IterableIterator<[string, string]>;
117-
/**
118-
* Returns an iterator allowing to go through all key/value pairs contained in this object.
119-
*/
114+
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
120115
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-
*/
116+
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
124117
keys(): IterableIterator<string>;
125-
/**
126-
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
127-
*/
118+
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
128119
values(): IterableIterator<string>;
129120
}
130121

131122
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-
*/
123+
/** 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. */
135124
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
136125
}
137126

@@ -144,6 +133,16 @@ interface IDBObjectStore {
144133
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
145134
}
146135

136+
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
137+
}
138+
139+
interface MIDIOutput {
140+
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
141+
}
142+
143+
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
144+
}
145+
147146
interface MediaKeyStatusMap {
148147
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
149148
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
@@ -161,66 +160,52 @@ interface MessageEvent<T = any> {
161160
}
162161

163162
interface MimeTypeArray {
164-
[Symbol.iterator](): IterableIterator<any>;
163+
[Symbol.iterator](): IterableIterator<MimeType>;
165164
}
166165

167166
interface NamedNodeMap {
168167
[Symbol.iterator](): IterableIterator<Attr>;
169168
}
170169

171170
interface Navigator {
171+
/** Available only in secure contexts. */
172172
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
173173
vibrate(pattern: Iterable<number>): boolean;
174174
}
175175

176176
interface NodeList {
177177
[Symbol.iterator](): IterableIterator<Node>;
178-
/**
179-
* Returns an array of key, value pairs for every entry in the list.
180-
*/
178+
/** Returns an array of key, value pairs for every entry in the list. */
181179
entries(): IterableIterator<[number, Node]>;
182-
/**
183-
* Returns an list of keys in the list.
184-
*/
180+
/** Returns an list of keys in the list. */
185181
keys(): IterableIterator<number>;
186-
/**
187-
* Returns an list of values in the list.
188-
*/
182+
/** Returns an list of values in the list. */
189183
values(): IterableIterator<Node>;
190184
}
191185

192186
interface NodeListOf<TNode extends Node> {
193187
[Symbol.iterator](): IterableIterator<TNode>;
194-
/**
195-
* Returns an array of key, value pairs for every entry in the list.
196-
*/
188+
/** Returns an array of key, value pairs for every entry in the list. */
197189
entries(): IterableIterator<[number, TNode]>;
198-
/**
199-
* Returns an list of keys in the list.
200-
*/
190+
/** Returns an list of keys in the list. */
201191
keys(): IterableIterator<number>;
202-
/**
203-
* Returns an list of values in the list.
204-
*/
192+
/** Returns an list of values in the list. */
205193
values(): IterableIterator<TNode>;
206194
}
207195

208196
interface Plugin {
209-
[Symbol.iterator](): IterableIterator<undefined>;
197+
[Symbol.iterator](): IterableIterator<MimeType>;
210198
}
211199

212200
interface PluginArray {
213-
[Symbol.iterator](): IterableIterator<any>;
201+
[Symbol.iterator](): IterableIterator<Plugin>;
214202
}
215203

216-
interface RTCStatsReport extends ReadonlyMap<string, any> {
204+
interface RTCRtpTransceiver {
205+
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
217206
}
218207

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

226211
interface SVGLengthList {
@@ -261,10 +246,10 @@ interface StyleSheetList {
261246

262247
interface SubtleCrypto {
263248
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
264-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
265-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
249+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
250+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
266251
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
267-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
252+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
268253
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
269254
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>;
270255
}
@@ -283,24 +268,25 @@ interface TouchList {
283268

284269
interface URLSearchParams {
285270
[Symbol.iterator](): IterableIterator<[string, string]>;
286-
/**
287-
* Returns an array of key, value pairs for every entry in the search params.
288-
*/
271+
/** Returns an array of key, value pairs for every entry in the search params. */
289272
entries(): IterableIterator<[string, string]>;
290-
/**
291-
* Returns a list of keys in the search params.
292-
*/
273+
/** Returns a list of keys in the search params. */
293274
keys(): IterableIterator<string>;
294-
/**
295-
* Returns a list of values in the search params.
296-
*/
275+
/** Returns a list of values in the search params. */
297276
values(): IterableIterator<string>;
298277
}
299278

300279
interface WEBGL_draw_buffers {
301280
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
302281
}
303282

283+
interface WEBGL_multi_draw {
284+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
285+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
286+
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;
287+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
288+
}
289+
304290
interface WebGL2RenderingContextBase {
305291
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
306292
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;

lib/lib.es2015.core.d.ts

+56-16
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ interface ObjectConstructor {
283283
* @param target The target object to copy to.
284284
* @param source The source object from which to copy properties.
285285
*/
286-
assign<T, U>(target: T, source: U): T & U;
286+
assign<T extends {}, U>(target: T, source: U): T & U;
287287

288288
/**
289289
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -292,7 +292,7 @@ interface ObjectConstructor {
292292
* @param source1 The first source object from which to copy properties.
293293
* @param source2 The second source object from which to copy properties.
294294
*/
295-
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
295+
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
296296

297297
/**
298298
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -302,7 +302,7 @@ interface ObjectConstructor {
302302
* @param source2 The second source object from which to copy properties.
303303
* @param source3 The third source object from which to copy properties.
304304
*/
305-
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
305+
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
306306

307307
/**
308308
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -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

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 {

0 commit comments

Comments
 (0)