@types/gulp-filter
TypeScript icon, indicating that this package has built-in type declarations

3.0.39 • Public • Published

Installation

npm install --save @types/gulp-filter

Summary

This package contains type definitions for gulp-filter (https://github.com/sindresorhus/gulp-filter).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-filter.

index.d.ts

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

import File = require("vinyl");
import * as Minimatch from "minimatch";

declare namespace filter {
    interface FileFunction {
        (file: File): boolean;
    }

    interface Options extends Minimatch.IOptions {
        restore?: boolean | undefined;
        passthrough?: boolean | undefined;
    }

    // A transform stream with a .restore object
    interface Filter extends NodeJS.ReadWriteStream {
        restore: NodeJS.ReadWriteStream;
    }
}

declare function filter(pattern: string | string[] | filter.FileFunction, options?: filter.Options): filter.Filter;

export = filter;

Additional Details

Credits

These definitions were written by Tanguy Krotoff.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-filter

Weekly Downloads

7,749

Version

3.0.39

License

MIT

Unpacked Size

4.07 kB

Total Files

5

Last publish

Collaborators

  • types