// Type definitions for recursive-readdir 2.2 // Project: https://github.com/jergason/recursive-readdir/ // Definitions by: Micah Zoltu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import * as fs from "fs"; declare namespace RecursiveReaddir { type IgnoreFunction = (file: string, stats: fs.Stats) => boolean; type Ignores = ReadonlyArray; type Callback = (error: Error, files: string[]) => void; interface readDir { (path: string, ignores?: Ignores): Promise; (path: string, callback: Callback): void; (path: string, ignores: Ignores, callback: Callback): void; } } declare var recursiveReadDir: RecursiveReaddir.readDir; export = recursiveReadDir;