diff --git a/src/runtime/animate/index.ts b/src/runtime/animate/index.ts index ed6764a32c..eafa8c9cfd 100644 --- a/src/runtime/animate/index.ts +++ b/src/runtime/animate/index.ts @@ -21,7 +21,7 @@ export function flip(node: Element, animation: { from: DOMRect; to: DOMRect }, p const { delay = 0, - duration = d => Math.sqrt(d) * 120, + duration = (d: number) => Math.sqrt(d) * 120, easing = cubicOut } = params;