DefinitelyTyped/types/glob-expand/index.d.ts
2017-08-20 15:37:53 -07:00

27 lines
792 B
TypeScript

// 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 types="glob"/>
import * as glob from "glob";
interface Option {
filter?: string | ((filePath: string) => boolean);
cwd?: string;
}
type _glob = typeof glob;
declare namespace expand {
var glob: _glob;
var VERSION: string;
}
declare function expand(opts: Option, patterns: (string | RegExp)[]): string[];
declare function expand(opts: Option, ...patterns: (string | RegExp)[]): string[];
declare function expand(patterns: (string | RegExp)[]): string[];
declare function expand(...patterns: (string | RegExp)[]): string[];
export = expand;