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
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/minimatch, @types/node, @types/vinyl
Credits
These definitions were written by Tanguy Krotoff.