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
§
{
[src]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>;
}