Skip to content

Commit 5984f77

Browse files
committed
docs: 修复 vitepress/theme/index.ts 类型错误
1 parent c97a3c7 commit 5984f77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/docs/.vitepress/theme/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { EnhanceAppContext } from 'vitepress'
12
import DemoPreview, { useComponents } from '@vitepress-code-preview/container'
23
import DefaultTheme from 'vitepress/theme'
34
import ccui from 'vue3-ccui/ui/vue-ccui'
@@ -7,7 +8,7 @@ import 'virtual:uno.css'
78

89
export default {
910
...DefaultTheme,
10-
enhanceApp(ctx) {
11+
enhanceApp(ctx: EnhanceAppContext) {
1112
DefaultTheme.enhanceApp(ctx)
1213

1314
ctx.app.use(ccui)

0 commit comments

Comments
 (0)