Skip to content

Commit 844eaf8

Browse files
chore(deps): types (#5370)
1 parent 12913bb commit 844eaf8

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"style-loader": "^4.0.0",
129129
"supertest": "^7.0.0",
130130
"tcp-port-used": "^1.0.2",
131-
"typescript": "^5.6.3",
131+
"typescript": "^5.7.2",
132132
"wait-for-expect": "^3.0.2",
133133
"webpack": "^5.94.0",
134134
"webpack-cli": "^5.0.1",

types/lib/Server.d.ts

+5-10
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ declare class Server<
11341134
*/
11351135
static findIp(
11361136
gatewayOrFamily: string,
1137-
isInternal?: boolean | undefined,
1137+
isInternal?: boolean,
11381138
): string | undefined;
11391139
/**
11401140
* @param {"v4" | "v6"} family
@@ -1377,32 +1377,27 @@ declare class Server<
13771377
* @param {string | string[]} watchPath
13781378
* @param {WatchOptions} [watchOptions]
13791379
*/
1380-
watchFiles(
1381-
watchPath: string | string[],
1382-
watchOptions?: import("chokidar").WatchOptions | undefined,
1383-
): void;
1380+
watchFiles(watchPath: string | string[], watchOptions?: WatchOptions): void;
13841381
/**
13851382
* @param {import("webpack-dev-middleware").Callback} [callback]
13861383
*/
1387-
invalidate(
1388-
callback?: import("webpack-dev-middleware").Callback | undefined,
1389-
): void;
1384+
invalidate(callback?: import("webpack-dev-middleware").Callback): void;
13901385
/**
13911386
* @returns {Promise<void>}
13921387
*/
13931388
start(): Promise<void>;
13941389
/**
13951390
* @param {(err?: Error) => void} [callback]
13961391
*/
1397-
startCallback(callback?: ((err?: Error) => void) | undefined): void;
1392+
startCallback(callback?: (err?: Error) => void): void;
13981393
/**
13991394
* @returns {Promise<void>}
14001395
*/
14011396
stop(): Promise<void>;
14021397
/**
14031398
* @param {(err?: Error) => void} [callback]
14041399
*/
1405-
stopCallback(callback?: ((err?: Error) => void) | undefined): void;
1400+
stopCallback(callback?: (err?: Error) => void): void;
14061401
}
14071402
declare namespace Server {
14081403
export {

0 commit comments

Comments
 (0)