From 464eb4f8254b24c0194f72f7d217aa36c298282c Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 19 Jul 2023 20:01:15 -0400 Subject: [PATCH] Import missing TransitionAnimationPair (#7726) * Import missing TransitionAnimationPair * Don't use satisfies --- packages/astro/src/transitions/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/transitions/index.ts b/packages/astro/src/transitions/index.ts index 4514269e55..9dcd20cab4 100644 --- a/packages/astro/src/transitions/index.ts +++ b/packages/astro/src/transitions/index.ts @@ -1,4 +1,4 @@ -import type { TransitionDirectionalAnimations } from '../@types/astro'; +import type { TransitionDirectionalAnimations, TransitionAnimationPair } from '../@types/astro'; export function slide({ duration, @@ -49,7 +49,7 @@ export function fade({ }: { duration?: string | number; } = {}): TransitionDirectionalAnimations { - const anim = { + const anim: TransitionAnimationPair = { old: { name: 'astroFadeInOut', duration: duration ?? '0.2s', @@ -62,7 +62,7 @@ export function fade({ easing: 'linear', fillMode: 'backwards', }, - } satisfies TransitionAnimationPair; + }; return { forwards: anim,