diff --git a/fs/expand_glob.ts b/fs/expand_glob.ts index 59c3b5a78f0e..a2130b40b16c 100644 --- a/fs/expand_glob.ts +++ b/fs/expand_glob.ts @@ -428,7 +428,7 @@ export async function* expandGlob( export function* expandGlobSync( glob: string | URL, options?: ExpandGlobOptions, -): IterableIterator { +): Generator { let { root, exclude = [], @@ -473,7 +473,7 @@ export function* expandGlobSync( function* advanceMatch( walkInfo: WalkEntry, globSegment: string, - ): IterableIterator { + ): Generator { if (!walkInfo.isDirectory) { return; } else if (globSegment === "..") { diff --git a/fs/walk.ts b/fs/walk.ts index 600e301cfa3f..ca587aa12c66 100644 --- a/fs/walk.ts +++ b/fs/walk.ts @@ -878,7 +878,7 @@ export async function* walk( export function* walkSync( root: string | URL, options?: WalkOptions, -): IterableIterator { +): Generator { let { maxDepth = Infinity, includeFiles = true,