@types/gulp-filter
@types/gulp-filter
npm i @types/gulp-filter
@types/gulp-filter

@types/gulp-filter

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

3.0.34 (see all)License:MITTypeScript:Built-In
npm i @types/gulp-filter
Readme

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

// Type definitions for gulp-filter v3.0.1
// Project: https://github.com/sindresorhus/gulp-filter
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

/// <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.

Downloads/wk

6.1K

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

200
VersionTagPublished
3.0.34
latest
1yr ago
3.0.34
ts4.7
1yr ago
3.0.34
ts4.6
1yr ago
3.0.34
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate