Socket
Socket
Sign inDemoInstall

@types/gulp-watch

Package Overview
Dependencies
8
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/gulp-watch

TypeScript definitions for gulp-watch


Version published
Maintainers
1
Install size
2.07 MB
Created

Readme

Source

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.

FAQs

Last updated on 21 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc