chore: modify the type of the incoming function in the vite configuration (#4622)
* fix: viteconfig funciont type error --------- Co-authored-by: afe1 <yunfei.zhu@nwowtec.com>pull/48/MERGE
parent
304b1b2efc
commit
0a99f27127
|
@ -139,12 +139,12 @@ type ApplicationOptions = ApplicationPluginOptions;
|
||||||
|
|
||||||
type LibraryOptions = LibraryPluginOptions;
|
type LibraryOptions = LibraryPluginOptions;
|
||||||
|
|
||||||
type DefineApplicationOptions = (config: ConfigEnv) => Promise<{
|
type DefineApplicationOptions = (config?: ConfigEnv) => Promise<{
|
||||||
application?: ApplicationOptions;
|
application?: ApplicationOptions;
|
||||||
vite?: UserConfig;
|
vite?: UserConfig;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
type DefineLibraryOptions = (config: ConfigEnv) => Promise<{
|
type DefineLibraryOptions = (config?: ConfigEnv) => Promise<{
|
||||||
library?: LibraryOptions;
|
library?: LibraryOptions;
|
||||||
vite?: UserConfig;
|
vite?: UserConfig;
|
||||||
}>;
|
}>;
|
||||||
|
|
Loading…
Reference in New Issue