-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
23 lines (19 loc) · 882 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// <reference path="./sync/index.d.ts" />
/// <reference path="./sync/relative.d.ts" />
/// <reference path="./async/index.d.ts" />
/// <reference path="./async/index.d.ts" />
/// <reference path="./promise/index.d.ts" />
/// <reference path="./promise/index.d.ts" />
/**
* Function called every time a file is found
* @param {string} AddFileFunction.filename - Path to the file found
*/
type AddFileFunction = (filename: string) => void;
/**
* List all files recursively in the specified directory
* @param {string} scanDirRecursive.dir - Path to the directory
* @param {AddFileFunction} scanDirRecursive.addFile - Function called every time a file is found
* @param {string[] = []} scanDirRecursive.ignore - List of files to ignore
*/
declare function scanDirRecursive(dir: string, addFile: AddFileFunction, ignore?: string[]): void;
export = scanDirRecursive;