1 |
|
2 |
|
3 | import File = require("vinyl");
|
4 | import * as Minimatch from "minimatch";
|
5 |
|
6 | declare 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 |
|
17 | interface Filter extends NodeJS.ReadWriteStream {
|
18 | restore: NodeJS.ReadWriteStream;
|
19 | }
|
20 | }
|
21 |
|
22 | declare function filter(pattern: string | string[] | filter.FileFunction, options?: filter.Options): filter.Filter;
|
23 |
|
24 | export = filter;
|