mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
28 lines
837 B
TypeScript
28 lines
837 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 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;
|
|
}
|