Skip to content

Commit ba45efd

Browse files
Update to TypeScript 4.4.2.
1 parent afe607f commit ba45efd

33 files changed

+91569
-69242
lines changed

tsserver/cs/diagnosticMessages.generated.json

+348-66
Large diffs are not rendered by default.

tsserver/de/diagnosticMessages.generated.json

+331-49
Large diffs are not rendered by default.

tsserver/es/diagnosticMessages.generated.json

+339-57
Large diffs are not rendered by default.

tsserver/fr/diagnosticMessages.generated.json

+332-50
Large diffs are not rendered by default.

tsserver/it/diagnosticMessages.generated.json

+349-67
Large diffs are not rendered by default.

tsserver/ja/diagnosticMessages.generated.json

+345-63
Large diffs are not rendered by default.

tsserver/ko/diagnosticMessages.generated.json

+344-62
Large diffs are not rendered by default.

tsserver/lib.dom.d.ts

+2,183-3,104
Large diffs are not rendered by default.

tsserver/lib.dom.iterable.d.ts

+31-17
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and limitations under the License.
1919

2020

2121
/////////////////////////////
22-
/// DOM Iterable APIs
22+
/// Window Iterable APIs
2323
/////////////////////////////
2424

2525
interface AudioParam {
@@ -50,10 +50,6 @@ interface CanvasPathDrawingStyles {
5050
setLineDash(segments: Iterable<number>): void;
5151
}
5252

53-
interface ClientRectList {
54-
[Symbol.iterator](): IterableIterator<ClientRect>;
55-
}
56-
5753
interface DOMRectList {
5854
[Symbol.iterator](): IterableIterator<DOMRect>;
5955
}
@@ -77,6 +73,9 @@ interface FileList {
7773
[Symbol.iterator](): IterableIterator<File>;
7874
}
7975

76+
interface FontFaceSet extends Set<FontFace> {
77+
}
78+
8079
interface FormData {
8180
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
8281
/**
@@ -110,7 +109,7 @@ interface HTMLFormElement {
110109
}
111110

112111
interface HTMLSelectElement {
113-
[Symbol.iterator](): IterableIterator<Element>;
112+
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
114113
}
115114

116115
interface Headers {
@@ -156,6 +155,11 @@ interface MediaList {
156155
[Symbol.iterator](): IterableIterator<string>;
157156
}
158157

158+
interface MessageEvent<T = any> {
159+
/** @deprecated */
160+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
161+
}
162+
159163
interface MimeTypeArray {
160164
[Symbol.iterator](): IterableIterator<MimeType>;
161165
}
@@ -166,6 +170,7 @@ interface NamedNodeMap {
166170

167171
interface Navigator {
168172
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
173+
vibrate(pattern: Iterable<number>): boolean;
169174
}
170175

171176
interface NodeList {
@@ -208,11 +213,14 @@ interface PluginArray {
208213
[Symbol.iterator](): IterableIterator<Plugin>;
209214
}
210215

211-
interface RTCRtpTransceiver {
212-
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
216+
interface RTCStatsReport extends ReadonlyMap<string, any> {
213217
}
214218

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

218226
interface SVGLengthList {
@@ -231,12 +239,12 @@ interface SVGStringList {
231239
[Symbol.iterator](): IterableIterator<string>;
232240
}
233241

234-
interface SourceBufferList {
235-
[Symbol.iterator](): IterableIterator<SourceBuffer>;
242+
interface SVGTransformList {
243+
[Symbol.iterator](): IterableIterator<SVGTransform>;
236244
}
237245

238-
interface SpeechGrammarList {
239-
[Symbol.iterator](): IterableIterator<SpeechGrammar>;
246+
interface SourceBufferList {
247+
[Symbol.iterator](): IterableIterator<SourceBuffer>;
240248
}
241249

242250
interface SpeechRecognitionResult {
@@ -251,6 +259,16 @@ interface StyleSheetList {
251259
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
252260
}
253261

262+
interface SubtleCrypto {
263+
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>;
266+
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>;
268+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
269+
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>;
270+
}
271+
254272
interface TextTrackCueList {
255273
[Symbol.iterator](): IterableIterator<TextTrackCue>;
256274
}
@@ -279,10 +297,6 @@ interface URLSearchParams {
279297
values(): IterableIterator<string>;
280298
}
281299

282-
interface VRDisplay {
283-
requestPresent(layers: Iterable<VRLayer>): Promise<void>;
284-
}
285-
286300
interface WEBGL_draw_buffers {
287301
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
288302
}

tsserver/lib.es2015.core.d.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface Array<T> {
4343
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
4444

4545
/**
46-
* Returns the this object after filling the section identified by start and end with value
46+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
4747
* @param value value to fill array section with
4848
* @param start index to start filling the array at. If start is negative, it is treated as
4949
* length+start where length is the length of the array.
@@ -507,11 +507,13 @@ interface StringConstructor {
507507
fromCodePoint(...codePoints: number[]): string;
508508

509509
/**
510-
* String.raw is intended for use as a tag function of a Tagged Template String. When called
511-
* as such the first argument will be a well formed template call site object and the rest
512-
* parameter will contain the substitution values.
510+
* String.raw is usually used as a tag function of a Tagged Template String. When called as
511+
* such, the first argument will be a well formed template call site object and the rest
512+
* parameter will contain the substitution values. It can also be called directly, for example,
513+
* to interleave strings and values from your own tag function, and in this case the only thing
514+
* it needs from the first argument is the raw property.
513515
* @param template A well-formed template string call site representation.
514516
* @param substitutions A set of substitution values.
515517
*/
516-
raw(template: TemplateStringsArray, ...substitutions: any[]): string;
518+
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
517519
}

tsserver/lib.es2015.iterable.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ interface MapConstructor {
163163
interface WeakMap<K extends object, V> { }
164164

165165
interface WeakMapConstructor {
166-
new <K extends object, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
166+
new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
167167
}
168168

169169
interface Set<T> {

tsserver/lib.es2015.symbol.wellknown.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ interface String {
239239
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
240240

241241
/**
242-
* Replaces text in a string, using an object that supports replacement within a string.
243-
* @param searchValue A object can search for and replace matches within a string.
244-
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
242+
* Replaces first match with string or all matches with RegExp.
243+
* @param searchValue A string or RegExp search value.
244+
* @param replaceValue A string containing the text to replace for match.
245245
*/
246246
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
247247

tsserver/lib.es2020.bigint.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ interface BigInt64Array {
184184
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
185185

186186
/**
187-
* Returns the this object after filling the section identified by start and end with value
187+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
188188
* @param value value to fill array section with
189189
* @param start index to start filling the array at. If start is negative, it is treated as
190190
* length+start where length is the length of the array.
@@ -456,7 +456,7 @@ interface BigUint64Array {
456456
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
457457

458458
/**
459-
* Returns the this object after filling the section identified by start and end with value
459+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
460460
* @param value value to fill array section with
461461
* @param start index to start filling the array at. If start is negative, it is treated as
462462
* length+start where length is the length of the array.

tsserver/lib.es5.d.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ interface Int8Array {
17961796
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
17971797

17981798
/**
1799-
* Returns the this object after filling the section identified by start and end with value
1799+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
18001800
* @param value value to fill array section with
18011801
* @param start index to start filling the array at. If start is negative, it is treated as
18021802
* length+start where length is the length of the array.
@@ -2078,7 +2078,7 @@ interface Uint8Array {
20782078
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
20792079

20802080
/**
2081-
* Returns the this object after filling the section identified by start and end with value
2081+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
20822082
* @param value value to fill array section with
20832083
* @param start index to start filling the array at. If start is negative, it is treated as
20842084
* length+start where length is the length of the array.
@@ -2360,7 +2360,7 @@ interface Uint8ClampedArray {
23602360
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
23612361

23622362
/**
2363-
* Returns the this object after filling the section identified by start and end with value
2363+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
23642364
* @param value value to fill array section with
23652365
* @param start index to start filling the array at. If start is negative, it is treated as
23662366
* length+start where length is the length of the array.
@@ -2641,7 +2641,7 @@ interface Int16Array {
26412641
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
26422642

26432643
/**
2644-
* Returns the this object after filling the section identified by start and end with value
2644+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
26452645
* @param value value to fill array section with
26462646
* @param start index to start filling the array at. If start is negative, it is treated as
26472647
* length+start where length is the length of the array.
@@ -2923,7 +2923,7 @@ interface Uint16Array {
29232923
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
29242924

29252925
/**
2926-
* Returns the this object after filling the section identified by start and end with value
2926+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
29272927
* @param value value to fill array section with
29282928
* @param start index to start filling the array at. If start is negative, it is treated as
29292929
* length+start where length is the length of the array.
@@ -3205,7 +3205,7 @@ interface Int32Array {
32053205
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
32063206

32073207
/**
3208-
* Returns the this object after filling the section identified by start and end with value
3208+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
32093209
* @param value value to fill array section with
32103210
* @param start index to start filling the array at. If start is negative, it is treated as
32113211
* length+start where length is the length of the array.
@@ -3487,7 +3487,7 @@ interface Uint32Array {
34873487
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
34883488

34893489
/**
3490-
* Returns the this object after filling the section identified by start and end with value
3490+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
34913491
* @param value value to fill array section with
34923492
* @param start index to start filling the array at. If start is negative, it is treated as
34933493
* length+start where length is the length of the array.
@@ -3768,7 +3768,7 @@ interface Float32Array {
37683768
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
37693769

37703770
/**
3771-
* Returns the this object after filling the section identified by start and end with value
3771+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
37723772
* @param value value to fill array section with
37733773
* @param start index to start filling the array at. If start is negative, it is treated as
37743774
* length+start where length is the length of the array.
@@ -4051,7 +4051,7 @@ interface Float64Array {
40514051
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
40524052

40534053
/**
4054-
* Returns the this object after filling the section identified by start and end with value
4054+
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
40554055
* @param value value to fill array section with
40564056
* @param start index to start filling the array at. If start is negative, it is treated as
40574057
* length+start where length is the length of the array.

tsserver/lib.esnext.intl.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ declare namespace Intl {
2727
}
2828

2929
interface NumberFormat {
30-
formatToParts(number?: number): NumberFormatPart[];
30+
formatToParts(number?: number | bigint): NumberFormatPart[];
3131
}
3232
}

0 commit comments

Comments
 (0)