forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglob-expand.d.ts
27 lines (21 loc) · 837 Bytes
/
glob-expand.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
24
25
26
27
// Type definitions for glob-expand
// Project: https://github.com/anodynos/node-glob-expand
// Definitions by: vvakame <https://github.com/vvakame/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../glob/glob.d.ts" />
declare module "glob-expand" {
import * as _glob from "glob";
interface Option {
filter?: string | ((filePath: string) => boolean);
cwd?: string;
}
namespace expand {
var glob: typeof _glob;
var VERSION: string;
}
function expand(opts: Option, patterns: (string | RegExp)[]): string[];
function expand(opts: Option, ...patterns: (string | RegExp)[]): string[];
function expand(patterns: (string | RegExp)[]): string[];
function expand(...patterns: (string | RegExp)[]): string[];
export = expand;
}