From 8bc9b14ca9db56afb7a7ce7b60a29c93ec165b0d Mon Sep 17 00:00:00 2001 From: Kay Schecker Date: Tue, 21 Feb 2017 08:41:00 +0100 Subject: [PATCH] Use function overloading instead of a single function --- node-forge/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node-forge/index.d.ts b/node-forge/index.d.ts index 893a96d48e..900fdfc2f9 100644 --- a/node-forge/index.d.ts +++ b/node-forge/index.d.ts @@ -269,6 +269,7 @@ declare module "node-forge" { getBagsByLocalKeyId: (localKeyId: string, bagType: string) => Bag[] } - function pkcs12FromAsn1(obj:any, strictOrPassword: boolean|string, password?: string) : Pkcs12Pfx; + function pkcs12FromAsn1(obj:any, strict?: boolean, password?: string) : Pkcs12Pfx; + function pkcs12FromAsn1(obj:any, password?: string) : Pkcs12Pfx; } }