Skip to content

Commit 21e26c3

Browse files
committed
修复编译问题
1 parent 0db3ecb commit 21e26c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/pure/utils/theme.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,11 @@ export function setTheme(theme?: string, save = false) {
4545
}
4646

4747
// The View Transitions API is used here to animate the theme change.
48-
// @ts-expect-error: The View Transitions API is not yet in the default TypeScript library.
4948
if (document.startViewTransition) {
5049
const x = window.innerWidth // Start from top-right corner
5150
const y = 0 // Start from top-right corner
5251
const endRadius = Math.hypot(window.innerWidth, window.innerHeight)
53-
54-
// @ts-expect-error: The View Transitions API is not yet in the default TypeScript library.
5552
const transition = document.startViewTransition(applyTheme)
56-
5753
transition.ready.then(() => {
5854
document.documentElement.animate(
5955
{

0 commit comments

Comments
 (0)