Skip to content

Commit cd03db8

Browse files
authored
revert!: sync defineConfig types with vite (#2529)
BREAKING CHANGE: reverts the breaking changes in beta-2
1 parent 51661de commit cd03db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ export type UserConfigExport<ThemeConfig> =
3838
/**
3939
* Type config helper
4040
*/
41-
export function defineConfig(config: UserConfigExport<DefaultTheme.Config>) {
41+
export function defineConfig(config: UserConfig<DefaultTheme.Config>) {
4242
return config
4343
}
4444

4545
/**
4646
* Type config helper for custom theme config
4747
*/
4848
export function defineConfigWithTheme<ThemeConfig>(
49-
config: UserConfigExport<ThemeConfig>
49+
config: UserConfig<ThemeConfig>
5050
) {
5151
return config
5252
}

0 commit comments

Comments
 (0)