From 287104aafb051d7017b87a8d73337da9e52794e4 Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:20:18 +0100 Subject: [PATCH] TS: fix `PrivateKey.getDecryptionKeys()` return type --- openpgp.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpgp.d.ts b/openpgp.d.ts index b46802ae..57d41672 100644 --- a/openpgp.d.ts +++ b/openpgp.d.ts @@ -94,7 +94,7 @@ export class PrivateKey extends PublicKey { public revoke(reason?: ReasonForRevocation, date?: Date, config?: Config): Promise; public isDecrypted(): boolean; public addSubkey(options: SubkeyOptions): Promise; - public getDecryptionKeys(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise; + public getDecryptionKeys(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise<(PrivateKey | Subkey)[]>; public update(sourceKey: PublicKey, date?: Date, config?: Config): Promise; }