@@ -25,6 +25,7 @@ const schema = require("./options.json");
25
25
/** @typedef {import("express").NextFunction } NextFunction */
26
26
/** @typedef {import("express").RequestHandler } ExpressRequestHandler */
27
27
/** @typedef {import("express").ErrorRequestHandler } ExpressErrorRequestHandler */
28
+ /** @typedef {import("anymatch").Matcher } AnymatchMatcher */
28
29
/** @typedef {import("chokidar").WatchOptions } WatchOptions */
29
30
/** @typedef {import("chokidar").FSWatcher } FSWatcher */
30
31
/** @typedef {import("connect-history-api-fallback").Options } ConnectHistoryApiFallbackOptions */
@@ -64,7 +65,7 @@ const schema = require("./options.json");
64
65
/**
65
66
* @typedef {Object } WatchFiles
66
67
* @property {string | string[] } paths
67
- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean } } [options]
68
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean } } [options]
68
69
*/
69
70
70
71
/**
@@ -73,7 +74,7 @@ const schema = require("./options.json");
73
74
* @property {string | string[] } [publicPath]
74
75
* @property {boolean | ServeIndexOptions } [serveIndex]
75
76
* @property {ServeStaticOptions } [staticOptions]
76
- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean } } [watch]
77
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean } } [watch]
77
78
*/
78
79
79
80
/**
@@ -754,7 +755,7 @@ class Server {
754
755
// TODO remove `{}` after drop webpack v4 support
755
756
const compilerWatchOptions = compilerOptions . watchOptions || { } ;
756
757
/**
757
- * @param {WatchOptions & WebpackConfiguration["watchOptions"] } watchOptions
758
+ * @param {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean } } watchOptions
758
759
* @returns {WatchOptions }
759
760
*/
760
761
const getWatchOptions = ( watchOptions = { } ) => {
0 commit comments