fix: fix encodeCid overload typings
This commit is contained in:
parent
001119b4c3
commit
2eb5810dec
14
src/cid.ts
14
src/cid.ts
|
@ -9,8 +9,18 @@ export interface CID {
|
||||||
hashType: number;
|
hashType: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function encodeCid(hash: Uint8Array, size: bigint);
|
export function encodeCid(
|
||||||
export function encodeCid(hash: string, size: bigint);
|
hash: Uint8Array,
|
||||||
|
size: bigint,
|
||||||
|
type?: number,
|
||||||
|
hashType?: number,
|
||||||
|
);
|
||||||
|
export function encodeCid(
|
||||||
|
hash: string,
|
||||||
|
size: bigint,
|
||||||
|
type?: number,
|
||||||
|
hashType?: number,
|
||||||
|
);
|
||||||
export function encodeCid(
|
export function encodeCid(
|
||||||
hash: any,
|
hash: any,
|
||||||
size: bigint,
|
size: bigint,
|
||||||
|
|
Loading…
Reference in New Issue