|
8 | 8 |
|
9 | 9 | declare module NodeJS {
|
10 | 10 | interface WritableStream {
|
11 |
| - write(buffer: any/* Vinyl.IFile */, cb?: Function): boolean; |
| 11 | + write(buffer: any/* Vinyl.File */, cb?: Function): boolean; |
12 | 12 | }
|
13 | 13 | }
|
14 | 14 |
|
15 | 15 | declare module "vinyl-fs" {
|
16 | 16 | import _events = require("events");
|
| 17 | + import File = require("vinyl"); |
17 | 18 |
|
18 |
| - function src(globs:string, opt?:{read?:boolean;buffer?:boolean;}):NodeJS.ReadWriteStream; |
| 19 | + function src(globs:string|string[], opt?:{read?:boolean;buffer?:boolean;}):NodeJS.ReadWriteStream; |
19 | 20 |
|
20 |
| - function src(globs:string[], opt?:{read?:boolean;buffer?:boolean;}):NodeJS.ReadWriteStream; |
| 21 | + function watch(globs:string|string[], cb?:(outEvt:{type:any;path:any;old:any;})=>void):_events.EventEmitter; |
21 | 22 |
|
22 |
| - function watch(globs:string, cb?:(outEvt:{type:any;path:any;old:any;})=>void):_events.EventEmitter; |
| 23 | + function watch(globs:string|string[], opt?:{interval?:number;debounceDelay?:number;cwd?:string;maxListeners?:Function;}, cb?:(outEvt:{type:any;path:any;old:any;})=>void):_events.EventEmitter; |
23 | 24 |
|
24 |
| - function watch(globs:string[], cb?:(outEvt:{type:any;path:any;old:any;})=>void):_events.EventEmitter; |
25 |
| - |
26 |
| - function watch(globs:string, opt?:{interval?:number;debounceDelay?:number;cwd?:string;maxListeners?:Function;}, cb?:(outEvt:{type:any;path:any;old:any;})=>void):_events.EventEmitter; |
27 |
| - |
28 |
| - function watch(globs:string[], opt?:{interval?:number;debounceDelay?:number;cwd?:string;maxListeners?:Function;}, cb?:(outEvt:{type:any;path:any;old:any;})=>void):_events.EventEmitter; |
29 |
| - |
30 |
| - function dest(folder:string, opt?:{cwd?:string; mode?:any/* number or string */;}):NodeJS.ReadWriteStream; |
| 25 | + function dest(folder: string, opt?: { cwd?: string; mode?: number|string; }): NodeJS.ReadWriteStream; |
| 26 | + function dest(getFolderPath: (file: File) => string): NodeJS.ReadWriteStream; |
31 | 27 | }
|
0 commit comments