UNPKG

@in-browser/fdir

Version:

The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s

19 lines (18 loc) 639 B
import { ResultCallback, Options } from "../types"; import { Output } from "../types"; export declare class Walker<TOutput extends Output> { private readonly root; private readonly isSynchronous; private readonly state; private readonly joinPath; private readonly pushDirectory; private readonly pushFile; private readonly getArray; private readonly groupFiles; private readonly resolveSymlink; private readonly walkDirectory; private readonly callbackInvoker; constructor(root: string, options: Options, callback?: ResultCallback<TOutput>); start(): TOutput | null; private walk; }