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

Lines changed: 348 additions & 66 deletions
Large diffs are not rendered by default.

tsserver/de/diagnosticMessages.generated.json

Lines changed: 331 additions & 49 deletions
Large diffs are not rendered by default.

tsserver/es/diagnosticMessages.generated.json

Lines changed: 339 additions & 57 deletions
Large diffs are not rendered by default.

tsserver/fr/diagnosticMessages.generated.json

Lines changed: 332 additions & 50 deletions
Large diffs are not rendered by default.

tsserver/it/diagnosticMessages.generated.json

Lines changed: 349 additions & 67 deletions
Large diffs are not rendered by default.

tsserver/ja/diagnosticMessages.generated.json

Lines changed: 345 additions & 63 deletions
Large diffs are not rendered by default.

tsserver/ko/diagnosticMessages.generated.json

Lines changed: 344 additions & 62 deletions
Large diffs are not rendered by default.

tsserver/lib.dom.d.ts

Lines changed: 2183 additions & 3104 deletions
Large diffs are not rendered by default.

tsserver/lib.dom.iterable.d.ts

Lines changed: 31 additions & 17 deletions
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

Lines changed: 7 additions & 5 deletions
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
}

0 commit comments

Comments
 (0)