mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
792 B
TypeScript
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;
|