mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
18 lines
711 B
TypeScript
18 lines
711 B
TypeScript
// Type definitions for globby 0.6
|
|
// Project: https://github.com/sindresorhus/globby#readme
|
|
// Definitions by: Douglas Duteil <https://github.com/douglasduteil>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { IOptions } from 'glob';
|
|
|
|
declare function globby(patterns: string | string[], options?: IOptions): Promise<string[]>;
|
|
|
|
declare namespace globby {
|
|
function sync(patterns: string | string[], options?: IOptions): string[];
|
|
function generateGlobTasks(patterns: string | string[], options?: IOptions): Array<{pattern: string, options: IOptions}>;
|
|
function hasMagic(patterns: string | string[], options?: IOptions): boolean;
|
|
}
|
|
|
|
export = globby;
|