Commit 0a99f271 by afe1 Committed by GitHub

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>
1 parent 304b1b2e
...@@ -139,12 +139,12 @@ type ApplicationOptions = ApplicationPluginOptions; ...@@ -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;
}>; }>;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!