UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

28 lines (23 loc) 894 B
// 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 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; }