1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import File = require('vinyl');
|
10 | import * as Minimatch from 'minimatch';
|
11 |
|
12 | declare namespace filter {
|
13 | interface FileFunction {
|
14 | (file: File): boolean;
|
15 | }
|
16 |
|
17 | interface Options extends Minimatch.IOptions {
|
18 | restore?: boolean | undefined;
|
19 | passthrough?: boolean | undefined;
|
20 | }
|
21 |
|
22 |
|
23 | interface Filter extends NodeJS.ReadWriteStream {
|
24 | restore: NodeJS.ReadWriteStream
|
25 | }
|
26 | }
|
27 |
|
28 | declare function filter(pattern: string | string[] | filter.FileFunction, options?: filter.Options): filter.Filter;
|
29 |
|
30 | export = filter;
|