- 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.
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.