File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,11 @@ export function setTheme(theme?: string, save = false) {
45
45
}
46
46
47
47
// 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.
49
48
if ( document . startViewTransition ) {
50
49
const x = window . innerWidth // Start from top-right corner
51
50
const y = 0 // Start from top-right corner
52
51
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.
55
52
const transition = document . startViewTransition ( applyTheme )
56
-
57
53
transition . ready . then ( ( ) => {
58
54
document . documentElement . animate (
59
55
{
You can’t perform that action at this time.
0 commit comments