Skip to content

Commit

Permalink
chore: add ContentHandle.read doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed May 29, 2024
1 parent 969d0f2 commit 6e19755
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dts/lib.fleek.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
/** Handle to blockstore content.
* Utility for traversing the proof and reading blocks from the blockstore.
* @property {Uint8Array} proof - Blake3 proof of the content
* @property {Uint8Array} proof - Raw blake3 proof of the content
* @property {number} length - Number of blocks in the content
* @category Fleek APIs
*/
declare class ContentHandle {
constructor(proof: Uint8Array);
proof: Uint8Array;
length: number;
read(id: any): any;
/**
* Read a given block index from the blockstore
* @param {number} idx - Index of block to read
* @returns {Promise<Uint8Array>}
*/
read(idx: number): Promise<Uint8Array>;
}

/** @category Fleek APIs */
Expand Down

0 comments on commit 6e19755

Please sign in to comment.