We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf060cd commit f188ea6Copy full SHA for f188ea6
packages/ipfs-unixfs/README.md
@@ -32,8 +32,8 @@ The UnixFS spec can be found in the [ipfs/specs repository](http://github.com/ip
32
33
```JavaScript
34
const data = new UnixFS({ type: 'file' })
35
-data.addBlockSize(256) // add the size of each block
36
-data.addBlockSize(256)
+data.addBlockSize(256n) // add the size of each block
+data.addBlockSize(256n)
37
// ...
38
```
39
@@ -68,7 +68,7 @@ const data = new UnixFS([options])
68
## Example - Add and remove a block size to the block size list
69
70
71
-data.addBlockSize(<size in bytes>)
+data.addBlockSize(<size in BigInt(bytes)>)
72
73
74
0 commit comments