1 |
|
2 | import fsNode = require('fs');
|
3 | import { IMinimatch, IOptions as MinimatchOptions } from 'minimatch';
|
4 | declare function walkSync(baseDir: string, inputOptions?: walkSync.Options | (string | IMinimatch)[]): string[];
|
5 | export = walkSync;
|
6 | declare namespace walkSync {
|
7 | function entries(baseDir: string, inputOptions?: Options | (string | IMinimatch)[]): Entry[];
|
8 | interface Options {
|
9 | includeBasePath?: boolean;
|
10 | globs?: (string | IMinimatch)[];
|
11 | ignore?: (string | IMinimatch)[];
|
12 | directories?: boolean;
|
13 | fs?: typeof fsNode;
|
14 | globOptions?: MinimatchOptions;
|
15 | }
|
16 | class Entry {
|
17 | relativePath: string;
|
18 | basePath: string;
|
19 | mode: number;
|
20 | size: number;
|
21 | mtime: number;
|
22 | constructor(relativePath: string, basePath: string, mode: number, size: number, mtime: number);
|
23 | get fullPath(): string;
|
24 | isDirectory(): boolean;
|
25 | }
|
26 | }
|