UNPKG

@in-browser/fdir

Version:

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

10 lines (9 loc) 353 B
import { Options, Output, ResultCallback } from "../types"; export declare class APIBuilder<TReturnType extends Output> { private readonly root; private readonly options; constructor(root: string, options: Options); withPromise(): Promise<TReturnType>; withCallback(cb: ResultCallback<TReturnType>): void; sync(): TReturnType; }