Skip to content

Commit

Permalink
refactor: add new overload to the type of defineConfig (#13958)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinassefranche committed Jul 27, 2023
1 parent df77991 commit 24c12fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/config.ts
Expand Up @@ -119,6 +119,7 @@ export type UserConfigExport =
*/
export function defineConfig(config: UserConfig): UserConfig
export function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>
export function defineConfig(config: UserConfigFnObject): UserConfigFnObject
export function defineConfig(config: UserConfigExport): UserConfigExport
export function defineConfig(config: UserConfigExport): UserConfigExport {
return config
Expand Down

0 comments on commit 24c12fe

Please sign in to comment.