Skip to content

Commit

Permalink
chore: generic type can be derived
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 21, 2024
1 parent 9988d32 commit 4a151fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/verified-fetch/src/verified-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class VerifiedFetch {
*/
private async handleCar ({ cid, options }: FetchHandlerFunctionArg): Promise<Response> {
const c = car(this.helia)
const stream = toBrowserReadableStream<Uint8Array>(c.stream(cid, options))
const stream = toBrowserReadableStream(c.stream(cid, options))

const response = okResponse(stream)
response.headers.set('content-type', 'application/vnd.ipld.car; version=1')
Expand Down

0 comments on commit 4a151fc

Please sign in to comment.