From 81ff395285ed26afeea689958e7f054ab6288569 Mon Sep 17 00:00:00 2001 From: progre Date: Mon, 22 Sep 2014 21:47:57 +0900 Subject: [PATCH] fix: watch() can abbreviate opt --- gulp/gulp.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gulp/gulp.d.ts b/gulp/gulp.d.ts index d8b1a6e6511521..d12c3edc1597e8 100644 --- a/gulp/gulp.d.ts +++ b/gulp/gulp.d.ts @@ -241,6 +241,15 @@ declare module gulp { dest(outFolder:(file:string)=>string, opt?:IDestOptions): NodeJS.ReadWriteStream; + /** + * Watch files and do something when a file changes. This always returns an EventEmitter that emits change events. + * + * @param glob a single glob or array of globs that indicate which files to watch for changes. + * @param tasks names of task(s) to run when a file changes, added with gulp.task() + */ + watch(glob:string, tasks:string[]): EventEmitter; + watch(glob:string[], tasks:string[]): EventEmitter; + /** * Watch files and do something when a file changes. This always returns an EventEmitter that emits change events. *