8000 refactor: add new overload to the type of defineConfig (#13958) · vitejs/vite@24c12fe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 24c12fe

Browse files
refactor: add new overload to the type of defineConfig (#13958)
1 parent df77991 commit 24c12fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite/src/node/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export type UserConfigExport =
119119
*/
120120
export function defineConfig(config: UserConfig): UserConfig
121121
export function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>
122+
export function defineConfig(config: UserConfigFnObject): UserConfigFnObject
122123
export function defineConfig(config: UserConfigExport): UserConfigExport
123124
export function defineConfig(config: UserConfigExport): UserConfigExport {
124125
return config

0 commit comments

Comments
 (0)
0