From cbc8a1ec78414e0131adddd72fb44574358d156e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhamatti=20Niemel=C3=A4?= Date: Wed, 23 Oct 2019 01:57:04 +0300 Subject: [PATCH] Add node-jose DecryptResult properties (#39148) Add missing DecryptResult properties found in the `node-jose` implementation and documented here: https://github.com/cisco/node-jose/blob/master/lib/jwe/decrypt.js#L42 --- types/node-jose/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/node-jose/index.d.ts b/types/node-jose/index.d.ts index dc4caaeca5..433786e419 100644 --- a/types/node-jose/index.d.ts +++ b/types/node-jose/index.d.ts @@ -113,10 +113,19 @@ export namespace JWE { } interface DecryptResult { + header: object; /** * an array of the member names from the "protected" member */ protected: string[]; + /** + * Key used to decrypt + */ + key: JWK.Key; + /** + * Buffer of the decrypted content + */ + payload: Buffer; /** * the decrypted content (alternate) */