Files
DefinitelyTyped/gulp-watch/index.d.ts

27 lines
804 B
TypeScript

// 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/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
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;
}
declare function watch(glob: string | Array<string>, options?: IOptions, callback?: Function): IWatchStream;
declare namespace watch { }
export = watch;