revert!: sync defineConfig types with vite (#2529)

BREAKING CHANGE: reverts the breaking changes in beta-2
pull/2530/head
Divyansh Singh 1 year ago committed by GitHub
parent 51661def8f
commit cd03db803d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,7 +38,7 @@ export type UserConfigExport<ThemeConfig> =
/**
* Type config helper
*/
export function defineConfig(config: UserConfigExport<DefaultTheme.Config>) {
export function defineConfig(config: UserConfig<DefaultTheme.Config>) {
return config
}
@ -46,7 +46,7 @@ export function defineConfig(config: UserConfigExport<DefaultTheme.Config>) {
* Type config helper for custom theme config
*/
export function defineConfigWithTheme<ThemeConfig>(
config: UserConfigExport<ThemeConfig>
config: UserConfig<ThemeConfig>
) {
return config
}

Loading…
Cancel
Save