UNPKG

626 BTypeScriptView Raw
1/// <reference types="node" />
2
3import File = require("vinyl");
4import * as Minimatch from "minimatch";
5
6declare namespace filter {
7 interface FileFunction {
8 (file: File): boolean;
9 }
10
11 interface Options extends Minimatch.IOptions {
12 restore?: boolean | undefined;
13 passthrough?: boolean | undefined;
14 }
15
16 // A transform stream with a .restore object
17 interface Filter extends NodeJS.ReadWriteStream {
18 restore: NodeJS.ReadWriteStream;
19 }
20}
21
22declare function filter(pattern: string | string[] | filter.FileFunction, options?: filter.Options): filter.Filter;
23
24export = filter;