Update KeyPair.getPublic overloads (#36098)

Had some bad overload definitions get through without me realizing.
This commit is contained in:
Daniel Byrne 2019-06-10 21:55:45 -07:00 committed by Ron Buckton
parent fc5a3acff8
commit 23bfb7e136

View File

@ -252,8 +252,10 @@ export namespace ec {
constructor(ec: ec, options: KeyPairOptions);
validate(): { readonly result: boolean; readonly reason: string };
getPublic(compact: boolean, enc: "hex" | "array"): string | number[];
getPublic(enc: "hex" | "array"): string;
getPublic(compact: boolean, enc: "hex"): string;
getPublic(compact: boolean, enc: "array"): number[];
getPublic(enc: "hex"): string;
getPublic(enc: "array"): number[];
getPublic(): curve.base.BasePoint;
getPrivate(enc: "hex"): string;
getPrivate(): BN;