Skip to content

Commit 72c7df4

Browse files
committed
fix importKey signatures
1 parent 2ad8b09 commit 72c7df4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

baselines/dom.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11483,9 +11483,9 @@ interface SubtleCrypto {
1148311483
generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>;
1148411484
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>;
1148511485
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
11486-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier, extractable:boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>;
11487-
importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, algorithm: AlgorithmIdentifier, extractable:boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>;
11488-
importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: AlgorithmIdentifier, extractable:boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>;
11486+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
11487+
importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
11488+
importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
1148911489
sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
1149011490
unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>;
1149111491
verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: BufferSource, data: BufferSource): PromiseLike<boolean>;

inputfiles/overridingTypes.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,9 @@
536536
"interface": "SubtleCrypto",
537537
"name": "importKey",
538538
"signatures": [
539-
"importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: AlgorithmIdentifier, extractable:boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>",
540-
"importKey(format: \"raw\" | \"pkcs8\" | \"spki\", keyData: BufferSource, algorithm: AlgorithmIdentifier, extractable:boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>",
541-
"importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: AlgorithmIdentifier, extractable:boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>"
539+
"importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>",
540+
"importKey(format: \"raw\" | \"pkcs8\" | \"spki\", keyData: BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>",
541+
"importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>"
542542
]
543543
},
544544
{

0 commit comments

Comments
 (0)