UNPKG

fs-iterator

Version:

A file system iterator with filter and asyncIterator iterafaces. Supports Node 0.10 and above

5 lines (4 loc) 293 B
import type Iterator from '../FSIterator.ts'; import type { Entry, StackEntry } from '../types.ts'; export type Callback = (error?: Error, entry?: IteratorResult<Entry>) => undefined; export default function depthFirst<_T>(item: StackEntry, iterator: Iterator, callback: Callback): undefined;