Browse Source

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/4626/head
afe1 1 year ago
committed by GitHub
parent
commit
0a99f27127
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      internal/vite-config/src/typing.ts

4
internal/vite-config/src/typing.ts

@ -139,12 +139,12 @@ type ApplicationOptions = ApplicationPluginOptions;
type LibraryOptions = LibraryPluginOptions;
type DefineApplicationOptions = (config: ConfigEnv) => Promise<{
type DefineApplicationOptions = (config?: ConfigEnv) => Promise<{
application?: ApplicationOptions;
vite?: UserConfig;
}>;
type DefineLibraryOptions = (config: ConfigEnv) => Promise<{
type DefineLibraryOptions = (config?: ConfigEnv) => Promise<{
library?: LibraryOptions;
vite?: UserConfig;
}>;

Loading…
Cancel
Save