TypeScript: add missing function definitions to Subkey
class (#1588)
Add types for `Subkey.getExpirationTime()`, `.isRevoked()`, `.update()`
This commit is contained in:
parent
126ab53840
commit
2e4e05369c
3
openpgp.d.ts
vendored
3
openpgp.d.ts
vendored
|
@ -98,6 +98,9 @@ export class Subkey {
|
||||||
public getCreationTime(): Date;
|
public getCreationTime(): Date;
|
||||||
public getAlgorithmInfo(): AlgorithmInfo;
|
public getAlgorithmInfo(): AlgorithmInfo;
|
||||||
public getKeyID(): KeyID;
|
public getKeyID(): KeyID;
|
||||||
|
public getExpirationTime(date?: Date, config?: Config): Promise<Date | typeof Infinity | null>
|
||||||
|
public isRevoked(signature: SignaturePacket, key: AnyKeyPacket, date?: Date, config?: Config): Promise<boolean>;
|
||||||
|
public update(subKey: Subkey, date?: Date, config?: Config): Promise<void>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface User {
|
export interface User {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user