From b83ef17f07c38a9f64195f5f5aa10f8fcb59e252 Mon Sep 17 00:00:00 2001 From: Luan Freitas Date: Sat, 20 Jan 2024 18:21:25 -0300 Subject: [PATCH] fix: build error TypeScript 5.3 --- src/provider.ts | 1 + src/subtle.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/provider.ts b/src/provider.ts index 982ead9..c8a741d 100644 --- a/src/provider.ts +++ b/src/provider.ts @@ -34,6 +34,7 @@ export abstract class ProviderCrypto { //#endregion //#region Generate key + public async generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; public async generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise; public async generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; public async generateKey(algorithm: Algorithm, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise; diff --git a/src/subtle.ts b/src/subtle.ts index 965ffc0..e05ec5f 100644 --- a/src/subtle.ts +++ b/src/subtle.ts @@ -37,6 +37,7 @@ export class SubtleCrypto implements globalThis.SubtleCrypto { return result; } + public async generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; public async generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise; public async generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise; public async generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable, ...args: any[]): Promise;