@types/glob-stream
TypeScript definitions for glob-stream
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/glob-stream 
SYNC missed versions from official npm registry.

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

/// <reference types="node" />

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;

    // Here, the settings interface provided by `picomatch` is used rather than the `anymatch` one's.
    // This is due to the fact that `anymatch` redirects its options to `picomatch`.
    // Furthermore, `anymatch`s type declaration of the `picomatch` options is hand-written and describes some of the available options incorrectly.
    export interface Options extends PicomatchOptions {
        /**
         * Whether or not to error upon an empty singular glob.
         */
        allowEmpty?: boolean | undefined;
        /**
         * The current working directory that the glob is resolved against.
         */
        cwd?: string | undefined;
        /**
         * The root path that the glob is resolved against.
         */
        root?: string | undefined;
        /**
         * The absolute segment of the glob path that isn't a glob. This value is attached
         * to each glob object and is useful for relative pathing.
         */
        base?: string | undefined;
        /**
         * Whether or not the {@linkcode cwd} and {@linkcode 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

Credits

These definitions were written by Bart van der Schoor, mrmlnc, and Manuel Thalmann.

Current Tags

  • 8.0.2                                ...           latest (2 years ago)
  • 6.1.0                                ...           ts2.0 (8 years ago)
  • 6.1.0                                ...           ts2.1 (8 years ago)
  • 6.1.0                                ...           ts2.2 (8 years ago)
  • 6.1.0                                ...           ts2.3 (8 years ago)
  • 6.1.0                                ...           ts2.4 (8 years ago)
  • 6.1.0                                ...           ts2.5 (8 years ago)
  • 6.1.0                                ...           ts2.6 (8 years ago)
  • 6.1.0                                ...           ts2.7 (8 years ago)
  • 6.1.0                                ...           ts2.8 (8 years ago)
  • 6.1.0                                ...           ts2.9 (8 years ago)
  • 6.1.0                                ...           ts3.0 (8 years ago)
  • 6.1.0                                ...           ts3.1 (8 years ago)
  • 6.1.0                                ...           ts3.2 (8 years ago)
  • 6.1.0                                ...           ts3.3 (8 years ago)
  • 6.1.0                                ...           ts3.4 (8 years ago)
  • 6.1.0                                ...           ts3.5 (8 years ago)
  • 6.1.1                                ...           ts3.6 (5 years ago)
  • 6.1.1                                ...           ts3.7 (5 years ago)
  • 6.1.1                                ...           ts3.8 (5 years ago)
  • 6.1.1                                ...           ts3.9 (5 years ago)
  • 6.1.1                                ...           ts4.0 (5 years ago)
  • 6.1.1                                ...           ts4.1 (5 years ago)
  • 6.1.1                                ...           ts4.2 (5 years ago)
  • 8.0.0                                ...           ts4.3 (3 years ago)
  • 8.0.0                                ...           ts4.4 (3 years ago)
  • 8.0.2                                ...           ts4.5 (2 years ago)
  • 8.0.2                                ...           ts4.6 (2 years ago)
  • 8.0.2                                ...           ts4.7 (2 years ago)
  • 8.0.2                                ...           ts4.8 (2 years ago)
  • 8.0.2                                ...           ts4.9 (2 years ago)
  • 8.0.2                                ...           ts5.0 (2 years ago)
  • 8.0.2                                ...           ts5.1 (2 years ago)
  • 8.0.2                                ...           ts5.2 (2 years ago)
  • 8.0.2                                ...           ts5.3 (2 years ago)
  • 8.0.2                                ...           ts5.4 (2 years ago)
  • 8.0.2                                ...           ts5.5 (2 years ago)
  • 8.0.2                                ...           ts5.6 (2 years ago)
  • 8.0.2                                ...           ts5.7 (2 years ago)
  • 8.0.2                                ...           ts5.8 (2 years ago)
  • 8.0.2                                ...           ts5.9 (2 years ago)

19 Versions

  • 8.0.2                                ...           2 years ago
  • 8.0.1                                ...           2 years ago
  • 8.0.0                                ...           3 years ago
  • 6.1.3                                ...           3 years ago
  • 6.1.2                                ...           3 years ago
  • 6.1.1                                ...           5 years ago
  • 6.1.0                                ...           8 years ago
  • 3.1.31                                ...           9 years ago
  • 3.1.30                                ...           10 years ago
  • 3.1.29                                ...           10 years ago
  • 3.1.28-alpha                                ...           10 years ago
  • 3.1.26-alpha                                ...           10 years ago
  • 3.1.25-alpha                                ...           10 years ago
  • 3.1.24-alpha                                ...           10 years ago
  • 3.1.23-alpha                                ...           10 years ago
  • 3.1.22-alpha                                ...           10 years ago
  • 3.1.21-alpha                                ...           10 years ago
  • 3.1.16-alpha                                ...           10 years ago
  • 3.1.15-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |