docs: add `ts-expect-error` flag for Transition API

pull/3664/head
lsh 2 years ago committed by GitHub
parent b50a8a1325
commit de4e8fbe3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save