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 { PicomatchOptions } from "picomatch";
import { Readable } from "streamx";
declare function globStream(glob: string | string[]): Readable<globStream.Entry>;
declare function globStream(glob: string | string[], options: globStream.Options): Readable<globStream.Entry>;
declare namespace globStream {
export interface Entry {
cwd: string;
base: string;
path: string;
}
export type UniqueByStringPredicate = keyof Entry;
export type UniqueByFunctionPredicate = (entry: Entry) => string;
export interface Options extends PicomatchOptions {
allowEmpty?: boolean | undefined;
cwd?: string | undefined;
root?: string | 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, mrmlnc, and Manuel Thalmann.