@types/watchify

  • Version 3.11.4
  • Published
  • 5.76 kB
  • 1 dependency
  • MIT license

Install

npm i @types/watchify
yarn add @types/watchify
pnpm add @types/watchify

Overview

TypeScript definitions for watchify

Index

Variables

variable Watchify

var Watchify: Watchify.Constructor;

    Interfaces

    interface Constructor

    interface Constructor {}
    • Watch mode for browserify builds. Update any source file and your browserify bundle will be recompiled on the spot

    property args

    args: { cache: any; packageCache: any };

      method close

      close: () => void;
      • Close all the open watch handles.

      call signature

      <T extends Browserify.BrowserifyObject>(b: T, opts?: Options): T;

        call signature

        (b: Browserify.BrowserifyObject, opts?: Options): Browserify.BrowserifyObject;

          interface Options

          interface Options {}

            property delay

            delay?: number | undefined;
            • The amount of time in milliseconds to wait before emitting an "update" event after a change. 100

            property ignoreWatch

            ignoreWatch?:
            | boolean
            | (
            | string
            | RegExp
            | ((...values: any[]) => boolean)
            | Array<string | RegExp | ((...values: any[]) => boolean)>
            )
            | undefined;
            • Ignores monitoring files for changes. If set to true, then ** /node_modules/ ** will be ignored. For other possible values see Chokidar's documentation on "ignored" Also see anymatch package: https://github.com/es128/anymatch#usage

            property poll

            poll?: boolean | number | undefined;
            • Enables polling to monitor for changes. If set to true, then a polling interval of 100 ms is used. If set to a number, then that amount of milliseconds will be the polling interval. For more info see Chokidar's documentation on "usePolling" and "interval". This option is useful if you're watching an NFS volume Also see chokidar package: https://github.com/paulmillr/chokidar#path-filtering

            Package Files (1)

            Dependencies (1)

            Dev Dependencies (0)

            No dev dependencies.

            Peer Dependencies (0)

            No peer dependencies.

            Badge

            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/watchify.

            • Markdown
              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/watchify)
            • HTML
              <a href="https://www.jsdocs.io/package/@types/watchify"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>