From 2e4e05369ccc3b398a25c63ae98408a9ebc4eee0 Mon Sep 17 00:00:00 2001 From: Fabien FORESTIER Date: Thu, 9 Feb 2023 23:15:18 +0100 Subject: [PATCH] TypeScript: add missing function definitions to `Subkey` class (#1588) Add types for `Subkey.getExpirationTime()`, `.isRevoked()`, `.update()` --- openpgp.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openpgp.d.ts b/openpgp.d.ts index 4cb3417e..e2a49d6b 100644 --- a/openpgp.d.ts +++ b/openpgp.d.ts @@ -98,6 +98,9 @@ export class Subkey { public getCreationTime(): Date; public getAlgorithmInfo(): AlgorithmInfo; public getKeyID(): KeyID; + public getExpirationTime(date?: Date, config?: Config): Promise + public isRevoked(signature: SignaturePacket, key: AnyKeyPacket, date?: Date, config?: Config): Promise; + public update(subKey: Subkey, date?: Date, config?: Config): Promise } export interface User {