We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ecce0 commit 0bb612dCopy full SHA for 0bb612d
packages/ipfs-unixfs-exporter/test/importer.spec.js
@@ -392,10 +392,10 @@ strategies.forEach((strategy) => {
392
393
it('fails on an iterator that yields bad content', async () => {
394
try {
395
+ // @ts-expect-error bad content
396
await all(importer([{
397
path: '200Bytes.txt',
398
content: {
- // @ts-expect-error bad content
399
[Symbol.iterator]: function * () {
400
yield 7
401
}
packages/ipfs-unixfs-importer/src/types.d.ts
@@ -6,7 +6,7 @@ import { Blockstore } from 'interface-blockstore'
6
7
interface ImportCandidate {
8
path?: string
9
- content?: AsyncIterable<Uint8Array>
+ content?: AsyncIterable<Uint8Array> | Iterable<Uint8Array> | Uint8Array
10
mtime?: Mtime
11
mode?: number
12
0 commit comments