mirror of
https://github.com/unjs/unplugin.git
synced 2025-12-08 20:26:33 +00:00
docs: fix type error
This commit is contained in:
parent
e32babbd8c
commit
46aa2da5a3
@ -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()
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": [".vitepress/**/*"]
|
||||
"compilerOptions": {
|
||||
"lib": ["DOM", "ESNext"]
|
||||
},
|
||||
"include": [".vitepress/**/*", "../src/globals.d.ts"]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user