@types/gulp-watch
TypeScript icon, indicating that this package has built-in type declarations

4.1.39 • Public • Published

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

/// <reference types="node" />

import * as File from "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

Credits

These definitions were written by Tanguy Krotoff.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-watch

Weekly Downloads

2,353

Version

4.1.39

License

MIT

Unpacked Size

4.54 kB

Total Files

5

Last publish

Collaborators

  • types