• Version 1.1.7
  • Published
  • 6.11 kB
  • 3 dependencies
  • MIT license


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


TypeScript definitions for watchpack



class Watchpack

class Watchpack extends EventEmitter {}


    constructor(options: Watchpack.WatchOptions);

      property aggregatedChanges

      aggregatedChanges: string[];

        property aggregateTimeout

        aggregateTimeout: NodeJS.Timer;

          property dirWatchers

          dirWatchers: Watcher[];

            property fileWatchers

            fileWatchers: Watcher[];

              property mtimes

              mtimes: { [path: string]: number };

                property options

                options: Watchpack.WatchOptions;

                  property paused

                  paused: boolean;

                    property watcherOptions

                    watcherOptions: Watchpack.WatcherOptions;

                      method close

                      close: () => void;

                        method getTimes

                        getTimes: () => { [path: string]: number };

                          method pause

                          pause: () => void;

                            method watch

                            watch: (files: string[], directories: string[], startTime?: number) => void;


                              interface WatcherOptions

                              interface WatcherOptions {}

                                property ignored

                                ignored?: string[] | string | RegExp | ((path: string) => boolean) | undefined;

                                  property poll

                                  poll?: boolean | number | undefined;

                                    interface WatchOptions

                                    interface WatchOptions extends WatcherOptions {}

                                      property aggregateTimeout

                                      aggregateTimeout?: number | undefined;

                                        Package Files (1)

                                        Dependencies (3)

                                        Dev Dependencies (0)

                                        No dev dependencies.

                                        Peer Dependencies (0)

                                        No peer dependencies.


                                        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/watchpack.

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