Update custom-theme.md

defineConfigWithTheme @deprecated — use defineConfig instead
pull/4758/head
PizzaConsole 4 months ago committed by GitHub
parent c128baf0c4
commit fbdd71e681
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -204,10 +204,10 @@ Finally, if the theme provides types for its theme config:
```ts [.vitepress/config.ts]
import baseConfig from 'awesome-vitepress-theme/config'
import { defineConfigWithTheme } from 'vitepress'
import { defineConfig } from 'vitepress'
import type { ThemeConfig } from 'awesome-vitepress-theme'
export default defineConfigWithTheme<ThemeConfig>({
export default defineConfig<ThemeConfig>({
extends: baseConfig,
themeConfig: {
// Type is `ThemeConfig`

Loading…
Cancel
Save