Skip to content

Commit

Permalink
revert!: sync defineConfig types with vite (#2529)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: reverts the breaking changes in beta-2
  • Loading branch information
brc-dd committed Jun 20, 2023
1 parent 51661de commit cd03db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/config.ts
Expand Up @@ -38,15 +38,15 @@ export type UserConfigExport<ThemeConfig> =
/**
* Type config helper
*/
export function defineConfig(config: UserConfigExport<DefaultTheme.Config>) {
export function defineConfig(config: UserConfig<DefaultTheme.Config>) {
return config
}

/**
* Type config helper for custom theme config
*/
export function defineConfigWithTheme<ThemeConfig>(
config: UserConfigExport<ThemeConfig>
config: UserConfig<ThemeConfig>
) {
return config
}
Expand Down

0 comments on commit cd03db8

Please sign in to comment.