UNPKG

955 BTypeScriptView Raw
1/// <reference types="node" />
2import fsNode = require('fs');
3import { IMinimatch, IOptions as MinimatchOptions } from 'minimatch';
4declare function walkSync(baseDir: string, inputOptions?: walkSync.Options | (string | IMinimatch)[]): string[];
5export = walkSync;
6declare 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}