Skip to content

Commit 1a171e2

Browse files
committed
fix(types): exclude false devServer config
1 parent 1f7fdde commit 1a171e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

types/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ export declare namespace RspackChain {
233233
clean(value: RspackOutput['clean']): this;
234234
}
235235

236-
type RspackDevServer = Required<NonNullable<Configuration['devServer']>>;
236+
type RspackDevServer = Required<
237+
Exclude<Configuration['devServer'], false | null | undefined>
238+
>;
237239

238240
type DevServerShorthandMethods<T> = {
239241
[K in keyof RspackDevServer]-?: (value: RspackDevServer[K]) => T;

0 commit comments

Comments
 (0)