From d23903fcce8951184a7ac4cc67269dee75a6334b Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Tue, 29 Oct 2024 09:18:51 +0000 Subject: [PATCH] fix constructor type --- packages/nextjs/src/config/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/src/config/types.ts b/packages/nextjs/src/config/types.ts index 2150382899c3..d887369606b6 100644 --- a/packages/nextjs/src/config/types.ts +++ b/packages/nextjs/src/config/types.ts @@ -500,7 +500,7 @@ export type BuildContext = { config: any; webpack: { version: string; - DefinePlugin: WebpackPluginInstance; + DefinePlugin: new (values: Record) => WebpackPluginInstance; }; // eslint-disable-next-line @typescript-eslint/no-explicit-any defaultLoaders: any; // needed for type tests (test:types)