Installation
npm install --save @types/glob-stream
Summary
This package contains type definitions for glob-stream (https://github.com/wearefractal/glob-stream).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/glob-stream.
import glob = require('glob');
declare function GlobStream(glob: string | string[]): NodeJS.ReadableStream;
declare function GlobStream(glob: string | string[], options: GlobStream.Options): NodeJS.ReadableStream;
declare namespace GlobStream {
export interface Entry {
cwd: string;
base: string;
path: string;
}
export type UniqueByStringPredicate = 'cwd' | 'base' | 'path';
export type UniqueByFunctionPredicate = (entry: Entry) => string;
export interface Options extends glob.IOptions {
allowEmpty?: boolean | undefined;
base?: string | undefined;
cwdbase?: boolean | undefined;
uniqueBy?: UniqueByStringPredicate | UniqueByFunctionPredicate | undefined;
}
}
export = GlobStream;
Additional Details
Credits
These definitions were written by Bart van der Schoor, and mrmlnc.