File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import { Builder, toBlobKey } from '../helpers/builder.js'
13
13
import { generateBlockLocationClaims , mockClaimsService , generateLocationClaim } from '../helpers/content-claims.js'
14
14
import { mockBucketService } from '../helpers/bucket.js'
15
15
16
+ /** @import { Block, Position } from 'carstream' */
17
+
16
18
/**
17
19
* @param {{ arrayBuffer: () => Promise<ArrayBuffer> } } a
18
20
* @param {{ arrayBuffer: () => Promise<ArrayBuffer> } } b
@@ -163,6 +165,7 @@ describe('freeway', () => {
163
165
const source = /** @type {ReadableStream<Uint8Array> } */ ( res . body )
164
166
const carStream = new CARReaderStream ( )
165
167
168
+ /** @type {(Block & Position)[] } */
166
169
const blocks = [ ]
167
170
await source . pipeThrough ( carStream ) . pipeTo ( new WritableStream ( {
168
171
write : ( block ) => { blocks . push ( block ) }
@@ -221,6 +224,7 @@ describe('freeway', () => {
221
224
const source = /** @type {ReadableStream<Uint8Array> } */ ( obj . body )
222
225
const carStream = new CARReaderStream ( )
223
226
227
+ /** @type {(Block & Position)[] } */
224
228
const blocks = [ ]
225
229
await source . pipeThrough ( carStream ) . pipeTo ( new WritableStream ( {
226
230
write : ( block ) => { blocks . push ( block ) }
You can’t perform that action at this time.
0 commit comments