Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Depot.Implementation

type Implementation = {
getBlock: (cid: CID) => Promise<Uint8Array>;
getUnixFile: (cid: CID) => Promise<Uint8Array>;
getUnixDirectory: (cid: CID) => Promise<DirectoryItem[]>;
putBlock: (data: Uint8Array, codec: CodecIdentifier) => Promise<CID>;
putChunked: (data: Uint8Array) => Promise<PutResult>;
size: (cid: CID) => Promise<number>;
}
;

§Type

§
{
getBlock: (cid: CID) => Promise<Uint8Array>;
getUnixFile: (cid: CID) => Promise<Uint8Array>;
getUnixDirectory: (cid: CID) => Promise<DirectoryItem[]>;
putBlock: (data: Uint8Array, codec: CodecIdentifier) => Promise<CID>;
putChunked: (data: Uint8Array) => Promise<PutResult>;
size: (cid: CID) => Promise<number>;
}
[src]