From abb84e5e4378bdfe0f260c775b81dfb2a5b1c604 Mon Sep 17 00:00:00 2001 From: "S. Elliott Johnson" Date: Mon, 8 May 2023 22:33:16 -0600 Subject: [PATCH] Manual cleanup of src/runtime/animate/index.js --- src/runtime/animate/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/runtime/animate/index.js b/src/runtime/animate/index.js index 01fd146304..cc47eab7a7 100644 --- a/src/runtime/animate/index.js +++ b/src/runtime/animate/index.js @@ -1,6 +1,8 @@ import { cubicOut } from '../easing'; import { is_function } from '../internal'; -/** @param {Element} node + +/** + * @param {Element} node * @param {{ from: DOMRect; to: DOMRect }} * @param {FlipParams} params * @returns {import("/Users/elliottjohnson/dev/sveltejs/svelte/index.ts-to-jsdoc").AnimationConfig} @@ -26,14 +28,17 @@ export function flip(node, { from, to }, params = {}) { }; } -/** @typedef {Object} AnimationConfig +/** + * @typedef {Object} AnimationConfig * @property {number} [delay] * @property {number} [duration] * @property {(t:number)=>number} [easing] * @property {(t:number,u:number)=>string} [css] * @property {(t:number,u:number)=>void} [tick] */ -/** @typedef {Object} FlipParams + +/** + * @typedef {Object} FlipParams * @property {number} [delay] * @property {number|((len:number)=>number)} [duration] * @property {(t:number)=>number} [easing]