Use function overloading instead of a single function

This commit is contained in:
Kay Schecker
2017-02-21 08:41:00 +01:00
parent 83f4d4558a
commit 8bc9b14ca9

View File

@@ -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;
}
}