Skip to content

Commit

Permalink
glob-source returns type AsyncIterable, not AsyncGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo committed Apr 12, 2022
1 parent 2a0e3e2 commit f80ae70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files/glob-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ const errCode = require('err-code')
* @param {boolean} [options.preserveMtime] - preserve mtime
* @param {number} [options.mode] - mode to use - if preserveMode is true this will be ignored
* @param {import('ipfs-unixfs').MtimeLike} [options.mtime] - mtime to use - if preserveMtime is true this will be ignored
* @return {AsyncGenerator<{
* @return {AsyncIterable<{
* path: string;
* content: AsyncIterable<Buffer> | undefined;
* mode: number | undefined;
* mtime: import("ipfs-unixfs/types/src/types").MtimeLike | undefined;
* }, void, unknown>} File objects that match glob
* }>} File objects that match glob
*/
module.exports = async function * globSource (cwd, pattern, options) {
options = options || {}
Expand Down

0 comments on commit f80ae70

Please sign in to comment.