Skip to content

Commit

Permalink
revert: narrow defineConfig return type (#12077)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Feb 16, 2023
1 parent 0a50c59 commit 54d511e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ export type UserConfigExport = UserConfig | Promise<UserConfig> | 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<UserConfig>): Promise<UserConfig>
export function defineConfig(config: UserConfigFn): UserConfigFn
export function defineConfig(config: UserConfigExport): UserConfigExport {
return config
}
Expand Down

0 comments on commit 54d511e

Please sign in to comment.