docs: fix type error

This commit is contained in:
三咲智子 Kevin Deng 2024-11-30 02:58:57 +08:00
parent e32babbd8c
commit 46aa2da5a3
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View File

@ -22,9 +22,8 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
Math.max(x, innerWidth - x),
Math.max(y, innerHeight - y),
)}px at ${x}px ${y}px)`,
]
]
// @ts-expect-error any
await document.startViewTransition(async () => {
isDark.value = !isDark.value
await nextTick()

View File

@ -14,6 +14,7 @@ export default defineConfig({
dirs: '.vitepress/components',
dts: '.vitepress/components.d.ts',
}),
// @ts-expect-error mismatch vite version
Unocss(fileURLToPath(new URL('./uno.config.ts', import.meta.url))),
Icons(),
groupIconVitePlugin({

View File

@ -1,4 +1,7 @@
{
"extends": "../tsconfig.json",
"include": [".vitepress/**/*"]
"compilerOptions": {
"lib": ["DOM", "ESNext"]
},
"include": [".vitepress/**/*", "../src/globals.d.ts"]
}