Skip to content

Commit 617f2d0

Browse files
authored
chore: update deps and types (#4209)
1 parent b8ddf9f commit 617f2d0

File tree

4 files changed

+988
-430
lines changed

4 files changed

+988
-430
lines changed

lib/Server.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ 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 */
2829
/** @typedef {import("chokidar").WatchOptions} WatchOptions */
2930
/** @typedef {import("chokidar").FSWatcher} FSWatcher */
3031
/** @typedef {import("connect-history-api-fallback").Options} ConnectHistoryApiFallbackOptions */
@@ -64,7 +65,7 @@ const schema = require("./options.json");
6465
/**
6566
* @typedef {Object} WatchFiles
6667
* @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]
6869
*/
6970

7071
/**
@@ -73,7 +74,7 @@ const schema = require("./options.json");
7374
* @property {string | string[]} [publicPath]
7475
* @property {boolean | ServeIndexOptions} [serveIndex]
7576
* @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]
7778
*/
7879

7980
/**
@@ -754,7 +755,7 @@ class Server {
754755
// TODO remove `{}` after drop webpack v4 support
755756
const compilerWatchOptions = compilerOptions.watchOptions || {};
756757
/**
757-
* @param {WatchOptions & WebpackConfiguration["watchOptions"]} watchOptions
758+
* @param {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} watchOptions
758759
* @returns {WatchOptions}
759760
*/
760761
const getWatchOptions = (watchOptions = {}) => {

0 commit comments

Comments
 (0)