mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[webpack] Adding client config options to the ConfigurationFactory (#40298)
* [webpack] Adding client config options * Fix on interface
This commit is contained in:
committed by
Pranav Senthilnathan
parent
71381a8470
commit
c13521e2fe
Vendored
+12
-2
@@ -136,14 +136,24 @@ declare namespace webpack {
|
||||
optimization?: Options.Optimization;
|
||||
}
|
||||
|
||||
interface CliConfigOptions {
|
||||
config?: string;
|
||||
mode?: Configuration["mode"];
|
||||
env?: string;
|
||||
'config-register'?: string;
|
||||
configRegister?: string;
|
||||
'config-name'?: string;
|
||||
configName?: string;
|
||||
}
|
||||
|
||||
type ConfigurationFactory = ((
|
||||
env: string | Record<string, boolean | number | string>,
|
||||
args: Record<string, string>,
|
||||
args: CliConfigOptions,
|
||||
) => Configuration | Promise<Configuration>);
|
||||
|
||||
type MultiConfigurationFactory = ((
|
||||
env: string | Record<string, boolean | number | string>,
|
||||
args: Record<string, string>,
|
||||
args: CliConfigOptions,
|
||||
) => Configuration[] | Promise<Configuration[]>);
|
||||
|
||||
interface Entry {
|
||||
|
||||
Reference in New Issue
Block a user