mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
glob can be an array of strings
This commit is contained in:
@@ -17,3 +17,14 @@ gulp.task('callback', (cb) =>
|
||||
.on('end', cb)
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task('build', () => {
|
||||
var files = [
|
||||
'app/**/*.ts',
|
||||
'lib/**/*.ts',
|
||||
'components/**/*.ts',
|
||||
];
|
||||
|
||||
gulp.src(files, { base: '..' })
|
||||
.pipe(watch(files, { base: '..' }));
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -21,7 +21,7 @@ declare module 'gulp-watch' {
|
||||
close(): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
function watch(glob: string, options?: IOptions, callback?: Function): IWatchStream;
|
||||
function watch(glob: string | Array<string>, options?: IOptions, callback?: Function): IWatchStream;
|
||||
|
||||
export = watch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user