Skip to content

openpgp.d.ts: PrivateKey.getDecryptionKeys wrong return type. #1693

@barskykd

Description

@barskykd
  • OpenPGP.js version: 5.10.2
  • Affected platform (Browser or Node.js version): Both, Typescript

In code and documentation (https://docs.openpgpjs.org/PrivateKey.html):

(async) getDecryptionKeys(keyID, date, userID, configopt) → {Promise.<Array.<(Key|Subkey)>>}

In openpgp.d.ts:
public getDecryptionKeys(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise<PrivateKey | Subkey>

Notice wrong type of return: it should be array.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions