Import missing TransitionAnimationPair (#7726)
* Import missing TransitionAnimationPair * Don't use satisfies
This commit is contained in:
parent
5cc54bbd5a
commit
464eb4f825
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue