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