UNPKG

690 BTypeScriptView Raw
1declare module 'webpack-merge' {
2 import { Configuration, WebpackPluginInstance } from 'webpack';
3 type MetaConfig = Configuration | ((env?: string) => Configuration);
4 type mergeFunction = (...configs: MetaConfig[]) => Configuration;
5 type customizeArrayFuntion = () => any[];
6 interface WebpackMergeOptions {
7 customizeArray: customizeArrayFuntion;
8 }
9 const webpackMerge: {
10 (options: WebpackMergeOptions): mergeFunction;
11 (...configs: MetaConfig[]): Configuration;
12 unique(key: string, uniques: string[], getter?: (plugin: WebpackPluginInstance) => string | undefined | false): customizeArrayFuntion;
13 };
14 export = webpackMerge;
15}