Import missing TransitionAnimationPair (#7726)

* Import missing TransitionAnimationPair

* Don't use satisfies
This commit is contained in:
Matthew Phillips 2023-07-19 20:01:15 -04:00 committed by GitHub
parent 5cc54bbd5a
commit 464eb4f825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,