@@ -25,7 +25,6 @@ const schema = require("./options.json");
2525/** @typedef {import("express").NextFunction } NextFunction */
2626/** @typedef {import("express").RequestHandler } ExpressRequestHandler */
2727/** @typedef {import("express").ErrorRequestHandler } ExpressErrorRequestHandler */
28- /** @typedef {import("anymatch").Matcher } AnymatchMatcher */
2928/** @typedef {import("chokidar").WatchOptions } WatchOptions */
3029/** @typedef {import("chokidar").FSWatcher } FSWatcher */
3130/** @typedef {import("connect-history-api-fallback").Options } ConnectHistoryApiFallbackOptions */
@@ -65,7 +64,7 @@ const schema = require("./options.json");
6564/**
6665 * @typedef {Object } WatchFiles
6766 * @property {string | string[] } paths
68- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[ ], poll?: number | boolean } } [options]
67+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored" ], poll?: number | boolean } } [options]
6968 */
7069
7170/**
@@ -74,7 +73,7 @@ const schema = require("./options.json");
7473 * @property {string | string[] } [publicPath]
7574 * @property {boolean | ServeIndexOptions } [serveIndex]
7675 * @property {ServeStaticOptions } [staticOptions]
77- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[ ], poll?: number | boolean } } [watch]
76+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored" ], poll?: number | boolean } } [watch]
7877 */
7978
8079/**
@@ -755,7 +754,7 @@ class Server {
755754 // TODO remove `{}` after drop webpack v4 support
756755 const compilerWatchOptions = compilerOptions . watchOptions || { } ;
757756 /**
758- * @param {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[ ], poll?: number | boolean } } watchOptions
757+ * @param {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored" ], poll?: number | boolean } } watchOptions
759758 * @returns {WatchOptions }
760759 */
761760 const getWatchOptions = ( watchOptions = { } ) => {
0 commit comments