mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
The definition was incomplete
This commit is contained in:
+5
-2
@@ -3,13 +3,16 @@
|
||||
// Definitions by: Elisée Maurer <https://github.com/elisee/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "recursive-readdir" {
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module "recursive-readdir" {
|
||||
import * as fs from "fs";
|
||||
module RecursiveReaddir {
|
||||
interface readdir {
|
||||
(path: string, callback: (error: Error, files: string[]) => any): void;
|
||||
// ignorePattern supports glob syntax via https://github.com/isaacs/minimatch
|
||||
(path: string, ignorePattern: string[], callback: (error: Error, files: string[]) => any): void;
|
||||
(path: string, ignorePattern: (string | ((file: string, stats: fs.Stats) => void))[], callback: (error: Error, files: string[]) => any): void;
|
||||
(path: string, ignoreFunction: (file: string, stats: fs.Stats) => void, callback: (error: Error, files: string[]) => any): void;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user