mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
added definitions for glob-stream
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/// <reference path="glob-stream" />
|
||||
|
||||
import gs = require('glob-stream');
|
||||
|
||||
var read: NodeJS.ReadableStream;
|
||||
|
||||
read = gs.create('xx');
|
||||
read = gs.create('xx', {});
|
||||
read = gs.create(['xx'], {});
|
||||
read = gs.create(['xx'], {cwd: 'xx'});
|
||||
read = gs.create(['xx'], {base: 'xx'});
|
||||
read = gs.create(['xx'], {cwdbase: true});
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
// 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/borisyankov/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;
|
||||
}
|
||||
Reference in New Issue
Block a user