mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Update KeyPair.getPublic overloads (#36098)
Had some bad overload definitions get through without me realizing.
This commit is contained in:
committed by
Ron Buckton
parent
fc5a3acff8
commit
23bfb7e136
Vendored
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user