Skip to content

Commit

Permalink
fix: un remove ts-expect-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Mar 28, 2024
1 parent 403ff99 commit 847c282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/routes/nfts-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export async function carStat(carBlob, { structure } = {}) {
throw new Error(`block too big: ${blockSize} > ${MAX_BLOCK_SIZE}`)
}
try {
// @ts-expect-error CID type mismatch
await validateBlock(block)
} catch (/** @type {any} */ err) {
throw new InvalidCarError(
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/utils/car.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function createCarIndex(carBytes) {
const { writer, out } = MultihashIndexSortedWriter.create()

for await (const blockIndexData of indexer) {
// @ts-expect-error CID impl conflict
writer.put(blockIndexData)
}
writer.close()
Expand Down

0 comments on commit 847c282

Please sign in to comment.