8.0.2 • Published 6 months ago
@types/glob-stream v8.0.2
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.
index.d.ts
// Type definitions for glob-stream v6.1.0
// Project: https://github.com/wearefractal/glob-stream
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// mrmlnc <https://github.com/mrmlnc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
/// <reference types="glob" />
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 {
/**
* Whether or not to error upon an empty singular glob.
*/
allowEmpty?: boolean | undefined;
/**
* The absolute segment of the glob path that isn't a glob. This value is attached
* to each globobject and is useful for relative pathing.
*/
base?: string | undefined;
/**
* Whether or not the `cwd` and `base` should be the same.
*/
cwdbase?: boolean | undefined;
/**
* Filters stream to remove duplicates based on the string property name or the result of function.
* When using a function, the function receives the streamed
* data (objects containing `cwd`, `base`, `path` properties) to compare against.
*/
uniqueBy?: UniqueByStringPredicate | UniqueByFunctionPredicate | undefined;
}
}
export = GlobStream;
Additional Details
- Last updated: Tue, 06 Jul 2021 20:33:05 GMT
- Dependencies: @types/glob, @types/node
- Global values: none
Credits
These definitions were written by Bart van der Schoor, and mrmlnc.
8.0.1
7 months ago
8.0.2
6 months ago
8.0.0
1 year ago
6.1.3
1 year ago
6.1.2
1 year ago
6.1.1
3 years ago
6.1.0
6 years ago
3.1.31
7 years ago
3.1.30
8 years ago
3.1.29
8 years ago
3.1.28-alpha
8 years ago
3.1.26-alpha
8 years ago
3.1.25-alpha
8 years ago
3.1.24-alpha
8 years ago
3.1.23-alpha
8 years ago
3.1.22-alpha
8 years ago
3.1.21-alpha
8 years ago
3.1.16-alpha
8 years ago
3.1.15-alpha
8 years ago