diff --git a/src/files/glob-source.js b/src/files/glob-source.js index 4e37f08..23ac62e 100644 --- a/src/files/glob-source.js +++ b/src/files/glob-source.js @@ -18,7 +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 - * @yields {Object} File objects in the form `{ path: String, content: AsyncIterator }` + * @returns {AsyncGenerator<{ + * path: string; + * content: AsyncIterable | undefined; + * mode: number | undefined; + * mtime: import("ipfs-unixfs/types/src/types").MtimeLike | undefined; + * }, void, unknown>} File objects that match glob */ module.exports = async function * globSource (cwd, pattern, options) { options = options || {}