# @types/gulp-watch

> TypeScript definitions for gulp-watch

Latest version **4.1.40** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/gulp-watch
pnpm add @types/gulp-watch
yarn add @types/gulp-watch
bun add @types/gulp-watch
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 4.1.40 |
| Published | 2025-10-24 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/gulp-watch
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-watch
- npm.io page: https://npm.io/package/@types/gulp-watch

## Dependencies (3)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/vinyl](https://npm.io/package/@types/vinyl.md) *
- [@types/vinyl-fs](https://npm.io/package/@types/vinyl-fs.md) *

## Recent versions

- 4.1.40 (latest) — 2025-10-24
- 4.1.39 (ts5.1) — 2023-11-21
- 4.1.35 (ts4.0) — 2021-07-08
- 4.1.34 (ts2.8) — 2017-11-09
- 4.1.38 — 2023-11-07
- 4.1.37 — 2023-10-18
- 4.1.36 — 2023-09-20
- 4.1.33 — 2017-08-21
- 4.1.32 — 2017-07-25
- 4.1.31 — 2017-06-20
- 4.1.30 — 2017-03-16
- 4.1.29 — 2016-09-19
- 4.1.28 — 2016-07-14
- 4.1.27-alpha — 2016-07-08
- 4.1.26-alpha — 2016-07-04
- … 7 more at https://npm.io/package/@types/gulp-watch/versions

## README

# 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).

---
_Source: https://npm.io/package/@types/gulp-watch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
