This repository was archived by the owner on Jan 7, 2026. It is now read-only.
Commit 76f53bc
committed
chore: fix TypeScript error
```
lib/storacha.js:12:20 - error TS2345: Argument of type 'Block[]' is not assignable to parameter of type 'Iterable<Block<unknown, number, number, 1>>'.
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
Type 'IteratorResult<Block, any>' is not assignable to type 'IteratorResult<Block<unknown, number, number, 1>, any>'.
Type 'IteratorYieldResult<Block>' is not assignable to type 'IteratorResult<Block<unknown, number, number, 1>, any>'.
Type 'IteratorYieldResult<Block>' is not assignable to type 'IteratorYieldResult<Block<unknown, number, number, 1>>'.
Type 'Block' is not assignable to type 'Block<unknown, number, number, 1>'.
The types of 'cid.version' are incompatible between these types.
Type 'Version' is not assignable to type '1'.
Type '0' is not assignable to type '1'.
12 return importDAG(blocks)
```
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>1 parent 328b5a3 commit 76f53bc
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
0 commit comments