fix(webpack): union type (#10575)

This commit is contained in:
insytes
2024-07-06 16:15:01 +01:00
committed by GitHub
parent 7f2d51e7d0
commit 0e2db6e586

View File

@ -158,10 +158,10 @@ export function chainWebpack(
* @param mergeFn An object or a function that optionally returns an object (can mutate the object directly and return nothing)
*/
export function mergeWebpack(
mergeFn: (
mergeFn: ((
config: Partial<webpack.Configuration>,
env: IWebpackEnv,
) => any | Partial<webpack.Configuration>,
) => any) | Partial<webpack.Configuration>,
) {
webpackMerges.push(mergeFn);
}