Skip to content

Commit

Permalink
fix: typecheck for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx committed May 23, 2024
1 parent 8be0b49 commit 6e27d63
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
)}px at ${x}px ${y}px)`,
]
// @ts-ignore missing types
await document.startViewTransition(async () => {
isDark.value = !isDark.value
await nextTick()
Expand Down
11 changes: 10 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
"compilerOptions": {
"lib": [
"DOM"
]
},
"include": [
".vitepress/**/*",
"**/*"
]
}

0 comments on commit 6e27d63

Please sign in to comment.