Skip to content

Commit

Permalink
chore: ts lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Sep 3, 2024
1 parent fb3ca9f commit 1e62483
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bundles/files/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ const actions = () => ({
...fileFromStats({ ...stats, path }),
fetched: time,
type: 'file',
/**
* Reads a portion of data from IPFS.
* @param {number} offset - The starting point to read from.
* @param {number} length - The number of bytes to read.
* @returns {AsyncIterable<Uint8Array>} An async generator that yields the data read from IPFS.
*/
read: (offset, length) => ipfs.cat(stats.cid, { offset, length }),
name: path.split('/').pop(),
size: stats.size,
Expand Down

0 comments on commit 1e62483

Please sign in to comment.