Skip to content

Commit f80ae70

Browse files
committed
glob-source returns type AsyncIterable, not AsyncGenerator
1 parent 2a0e3e2 commit f80ae70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/files/glob-source.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ const errCode = require('err-code')
1818
* @param {boolean} [options.preserveMtime] - preserve mtime
1919
* @param {number} [options.mode] - mode to use - if preserveMode is true this will be ignored
2020
* @param {import('ipfs-unixfs').MtimeLike} [options.mtime] - mtime to use - if preserveMtime is true this will be ignored
21-
* @return {AsyncGenerator<{
21+
* @return {AsyncIterable<{
2222
* path: string;
2323
* content: AsyncIterable<Buffer> | undefined;
2424
* mode: number | undefined;
2525
* mtime: import("ipfs-unixfs/types/src/types").MtimeLike | undefined;
26-
* }, void, unknown>} File objects that match glob
26+
* }>} File objects that match glob
2727
*/
2828
module.exports = async function * globSource (cwd, pattern, options) {
2929
options = options || {}

0 commit comments

Comments
 (0)