PizzaConsole 3 weeks ago committed by GitHub
commit 30588c05c4
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] ```ts [.vitepress/config.ts]
import baseConfig from 'awesome-vitepress-theme/config' import baseConfig from 'awesome-vitepress-theme/config'
import { defineConfigWithTheme } from 'vitepress' import { defineConfig } from 'vitepress'
import type { ThemeConfig } from 'awesome-vitepress-theme' import type { ThemeConfig } from 'awesome-vitepress-theme'
export default defineConfigWithTheme<ThemeConfig>({ export default defineConfig<ThemeConfig>({
extends: baseConfig, extends: baseConfig,
themeConfig: { themeConfig: {
// Type is `ThemeConfig` // Type is `ThemeConfig`

Loading…
Cancel
Save