Skip to content

Commit 8905877

Browse files
committed
fix: add any fallback to generic
was like this in Svelte 3
1 parent 0b09e1f commit 8905877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/runtime/motion/spring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function tick_spring(ctx, last_value, current_value, target_value) {
4949
* The spring function in Svelte creates a store whose value is animated, with a motion that simulates the behavior of a spring. This means when the value changes, instead of transitioning at a steady rate, it "bounces" like a spring would, depending on the physics parameters provided. This adds a level of realism to the transitions and can enhance the user experience.
5050
*
5151
* https://svelte.dev/docs/svelte-motion#spring
52-
* @template T
52+
* @template [T=any]
5353
* @param {T} [value]
5454
* @param {import('./private.js').SpringOpts} [opts]
5555
* @returns {import('./public.js').Spring<T>}

0 commit comments

Comments
 (0)