From 91f106ba56f5d3f309281285e9855bc983fb2b2c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 30 Jan 2019 02:06:14 -0800 Subject: [PATCH] node-forge: Asn1.value may be Bytes Signed-off-by: Anders Kaseorg --- types/node-forge/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/node-forge/index.d.ts b/types/node-forge/index.d.ts index 6e7d5d136e..67e12c35bd 100644 --- a/types/node-forge/index.d.ts +++ b/types/node-forge/index.d.ts @@ -359,10 +359,10 @@ declare module "node-forge" { type: Type; constructed: boolean; composed: boolean; - value: Asn1[]; + value: Bytes | Asn1[]; } - function create(tagClass: Class, type: Type, constructed: boolean, value: string | Asn1[]): Asn1; + function create(tagClass: Class, type: Type, constructed: boolean, value: Bytes | Asn1[]): Asn1; function fromDer(bytes: Bytes | util.ByteBuffer, strict?: boolean): Asn1; function toDer(obj: Asn1): util.ByteBuffer; function oidToDer(oid: OID): util.ByteStringBuffer;