UNPKG

@types/gulp-watch

Version:
46 lines (35 loc) 1.64 kB
# Installation > `npm install --save @types/gulp-watch` # Summary This package contains type definitions for gulp-watch (https://github.com/floatdrop/gulp-watch). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-watch. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-watch/index.d.ts) ````ts /// <reference types="node" /> import File = require("vinyl"); import { SrcOptions } from "vinyl-fs"; interface IOptions extends SrcOptions { ignoreInitial?: boolean | undefined; events?: string[] | undefined; base?: string | undefined; name?: string | undefined; verbose?: boolean | undefined; readDelay?: number | undefined; } interface IWatchStream extends NodeJS.ReadWriteStream { add(path: string | string[]): NodeJS.ReadWriteStream; unwatch(path: string | string[]): NodeJS.ReadWriteStream; close(): NodeJS.ReadWriteStream; } type Cb = (file: File & { event: "add" | "change" | "unlink" }) => void; declare function watch(glob: string | string[], callback?: Cb): IWatchStream; declare function watch(glob: string | string[], options?: IOptions, callback?: Cb): IWatchStream; declare namespace watch {} export = watch; ```` ### Additional Details * Last updated: Fri, 24 Oct 2025 04:02:41 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/vinyl](https://npmjs.com/package/@types/vinyl), [@types/vinyl-fs](https://npmjs.com/package/@types/vinyl-fs) # Credits These definitions were written by [Tanguy Krotoff](https://github.com/tkrotoff).