Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork139
Open
Description
The return typing offs.promise.glob in memfs is incorrect. It returnsPromise<string[]> instead ofNodeJS.AsyncIterator<string>
glob:(pattern:string,options?:opts.IGlobOptions)=>Promise<string[]>;
/** * ```js * import { glob } from 'node:fs/promises'; * * for await (const entry of glob('*.js')) * console.log(entry); * ``` *@since v22.0.0 *@returns An AsyncIterator that yields the paths of files * that match the pattern. */functionglob(pattern:string|readonlystring[]):NodeJS.AsyncIterator<string>;functionglob(pattern:string|readonlystring[],options:GlobOptionsWithFileTypes,):NodeJS.AsyncIterator<Dirent>;functionglob(pattern:string|readonlystring[],options:GlobOptionsWithoutFileTypes,):NodeJS.AsyncIterator<string>;functionglob(pattern:string|readonlystring[],options:GlobOptions,):NodeJS.AsyncIterator<Dirent|string>;
Metadata
Metadata
Assignees
Labels
No labels