Skip to content

Commit 54d511e

Browse files
authoredFeb 16, 2023
revert: narrow defineConfig return type (#12077)
1 parent 0a50c59 commit 54d511e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed
 

‎packages/vite/src/node/config.ts

-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ export type UserConfigExport = UserConfig | Promise<UserConfig> | UserConfigFn
104104
* The function receives a {@link ConfigEnv} object that exposes two properties:
105105
* `command` (either `'build'` or `'serve'`), and `mode`.
106106
*/
107-
export function defineConfig(config: UserConfig): UserConfig
108-
export function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>
109-
export function defineConfig(config: UserConfigFn): UserConfigFn
110107
export function defineConfig(config: UserConfigExport): UserConfigExport {
111108
return config
112109
}

0 commit comments

Comments
 (0)
Please sign in to comment.