Skip to content

Commit eff9148

Browse files
committed
chore: config refactor [ci skip]
1 parent 34b0e98 commit eff9148

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.vitepress/config.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import fs from 'fs'
22
import path from 'path'
33
import { defineConfigWithTheme } from 'vitepress'
4+
import type { Config as ThemeConfig } from '@vue/theme'
45
import baseConfig from '@vue/theme/config'
56
import { headerPlugin } from './headerMdPlugin'
6-
import type { Config } from '@vue/theme'
7-
import { UserConfig } from 'vitepress'
87

98
const nav = [
109
{
@@ -531,8 +530,8 @@ export const sidebar = {
531530
]
532531
}
533532

534-
export default defineConfigWithTheme<Config>({
535-
extends: baseConfig as () => UserConfig<Config>,
533+
export default defineConfigWithTheme<ThemeConfig>({
534+
extends: baseConfig,
536535

537536
lang: 'en-US',
538537
title: 'Vue.js',

0 commit comments

Comments
 (0)