Skip to content

Commit 91ce22b

Browse files
Update TypeScript to 4.7.2.
1 parent a22f8a3 commit 91ce22b

Some content is hidden

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

41 files changed

+122153
-105574
lines changed

tsserver/cs/diagnosticMessages.generated.json

Lines changed: 72 additions & 51 deletions
Large diffs are not rendered by default.

tsserver/de/diagnosticMessages.generated.json

Lines changed: 72 additions & 51 deletions
Large diffs are not rendered by default.

tsserver/es/diagnosticMessages.generated.json

Lines changed: 65 additions & 44 deletions
Large diffs are not rendered by default.

tsserver/fr/diagnosticMessages.generated.json

Lines changed: 54 additions & 33 deletions
Large diffs are not rendered by default.

tsserver/it/diagnosticMessages.generated.json

Lines changed: 74 additions & 53 deletions
Large diffs are not rendered by default.

tsserver/ja/diagnosticMessages.generated.json

Lines changed: 53 additions & 32 deletions
Large diffs are not rendered by default.

tsserver/ko/diagnosticMessages.generated.json

Lines changed: 73 additions & 52 deletions
Large diffs are not rendered by default.

tsserver/lib.dom.d.ts

Lines changed: 404 additions & 31 deletions
Large diffs are not rendered by default.

tsserver/lib.dom.iterable.d.ts

Lines changed: 16 additions & 3 deletions
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
}
@@ -130,6 +133,16 @@ interface IDBObjectStore {
130133
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
131134
}
132135

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+
133146
interface MediaKeyStatusMap {
134147
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
135148
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
@@ -233,10 +246,10 @@ interface StyleSheetList {
233246

234247
interface SubtleCrypto {
235248
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
236-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
237-
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>;
238251
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
239-
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>;
240253
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
241254
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>;
242255
}

tsserver/lib.es2015.core.d.ts

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

0 commit comments

Comments
 (0)