diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 7c5491694b27db..ff5ee5ef884a07 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -104,6 +104,9 @@ export type UserConfigExport = UserConfig | Promise | UserConfigFn * The function receives a {@link ConfigEnv} object that exposes two properties: * `command` (either `'build'` or `'serve'`), and `mode`. */ +export function defineConfig(config: UserConfig): UserConfig +export function defineConfig(config: Promise): Promise +export function defineConfig(config: UserConfigFn): UserConfigFn export function defineConfig(config: UserConfigExport): UserConfigExport { return config }