Skip to content

Commit fbbf8f0

Browse files
authored
fix: only export one thing from glob source (#223)
Fixes: ``` node_modules/ipfs-utils/dist/src/files/glob-source.d.ts:2:1 - error TS2309: An export assignment cannot be used in a module with other exported elements. 2 export = _exports; ```
1 parent e0b3493 commit fbbf8f0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/files/glob-source.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@ const glob = require('it-glob')
66
const Path = require('path')
77
const errCode = require('err-code')
88

9-
/**
10-
* @typedef {import('ipfs-unixfs').MtimeLike} MtimeLike
11-
* @typedef {import('../types').GlobSourceOptions} GlobSourceOptions
12-
* @typedef {import('../types').GlobSourceResult} GlobSourceResult
13-
*/
14-
159
/**
1610
* Create an async iterator that yields paths that match requested glob pattern
1711
*
1812
* @param {string} cwd - The directory to start matching the pattern in
1913
* @param {string} pattern - Glob pattern to match
20-
* @param {GlobSourceOptions} [options] - Optional options
21-
* @returns {AsyncGenerator<GlobSourceResult, void, unknown>} File objects that match glob
14+
* @param {import('../types').GlobSourceOptions} [options] - Optional options
15+
* @returns {AsyncGenerator<import('../types').GlobSourceResult, void, unknown>} File objects that match glob
2216
*/
2317
module.exports = async function * globSource (cwd, pattern, options) {
2418
options = options || {}

0 commit comments

Comments
 (0)