Skip to content

Commit

Permalink
chore: update deps and types (#4209)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jan 22, 2022
1 parent b8ddf9f commit 617f2d0
Show file tree
Hide file tree
Showing 4 changed files with 988 additions and 430 deletions.
7 changes: 4 additions & 3 deletions lib/Server.js
Expand Up @@ -25,6 +25,7 @@ const schema = require("./options.json");
/** @typedef {import("express").NextFunction} NextFunction */
/** @typedef {import("express").RequestHandler} ExpressRequestHandler */
/** @typedef {import("express").ErrorRequestHandler} ExpressErrorRequestHandler */
/** @typedef {import("anymatch").Matcher} AnymatchMatcher */
/** @typedef {import("chokidar").WatchOptions} WatchOptions */
/** @typedef {import("chokidar").FSWatcher} FSWatcher */
/** @typedef {import("connect-history-api-fallback").Options} ConnectHistoryApiFallbackOptions */
Expand Down Expand Up @@ -64,7 +65,7 @@ const schema = require("./options.json");
/**
* @typedef {Object} WatchFiles
* @property {string | string[]} paths
* @property {WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [options]
* @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
*/

/**
Expand All @@ -73,7 +74,7 @@ const schema = require("./options.json");
* @property {string | string[]} [publicPath]
* @property {boolean | ServeIndexOptions} [serveIndex]
* @property {ServeStaticOptions} [staticOptions]
* @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [watch]
* @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
*/

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

0 comments on commit 617f2d0

Please sign in to comment.