diff --git a/src/cid.ts b/src/cid.ts index eca7c39..6da2a79 100644 --- a/src/cid.ts +++ b/src/cid.ts @@ -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,