mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
27 lines
732 B
TypeScript
27 lines
732 B
TypeScript
// Type definitions for glob-stream v3.1.12
|
|
// Project: http://github.com/wearefractal/glob-stream
|
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../node/node.d.ts" />
|
|
/// <reference path="../glob/glob.d.ts" />
|
|
|
|
declare module 'glob-stream' {
|
|
import glob = require('glob');
|
|
|
|
export interface Options extends glob.IOptions {
|
|
cwd?: string;
|
|
base?: string;
|
|
cwdbase?: boolean;
|
|
}
|
|
|
|
export interface Element {
|
|
cwd: string;
|
|
base: string;
|
|
path: string;
|
|
}
|
|
|
|
export function create(glob:string, opts?: Options): NodeJS.ReadableStream;
|
|
export function create(globs:string[], opts?: Options): NodeJS.ReadableStream;
|
|
}
|