forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-watch.d.ts
27 lines (23 loc) · 890 Bytes
/
gulp-watch.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Type definitions for gulp-watch v4.1.1
// Project: https://github.com/floatdrop/gulp-watch
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module 'gulp-watch' {
interface IOptions {
ignoreInitial?: boolean;
events?: Array<string>;
base?: string;
name?: string;
verbose?: boolean;
readDelay?: number;
}
interface IWatchStream extends NodeJS.ReadWriteStream {
add(path: string | Array<string>): NodeJS.ReadWriteStream;
unwatch(path: string | Array<string>): NodeJS.ReadWriteStream;
close(): NodeJS.ReadWriteStream;
}
function watch(glob: string | Array<string>, options?: IOptions, callback?: Function): IWatchStream;
namespace watch {}
export = watch;
}