diff --git a/types/elliptic/index.d.ts b/types/elliptic/index.d.ts index 56d1f4521b..59fa2a0da2 100644 --- a/types/elliptic/index.d.ts +++ b/types/elliptic/index.d.ts @@ -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;