fix: fix encodeCid overload typings

This commit is contained in:
Derrick Hammer 2023-09-02 06:43:47 -04:00
parent 001119b4c3
commit 2eb5810dec
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 12 additions and 2 deletions

View File

@ -9,8 +9,18 @@ export interface CID {
hashType: number;
}
export function encodeCid(hash: Uint8Array, size: bigint);
export function encodeCid(hash: string, size: bigint);
export function encodeCid(
hash: Uint8Array,
size: bigint,
type?: number,
hashType?: number,
);
export function encodeCid(
hash: string,
size: bigint,
type?: number,
hashType?: number,
);
export function encodeCid(
hash: any,
size: bigint,