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