We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4d397d commit 1415eeeCopy full SHA for 1415eee
packages/svelte/src/motion/spring.js
@@ -167,10 +167,10 @@ export class Spring {
167
#damping = source(0.8);
168
#precision = source(0.01);
169
170
- #current = source(/** @type {T} */ (undefined));
171
- #target = source(/** @type {T} */ (undefined));
+ #current = source(/** @type {T | undefined} */ (undefined));
+ #target = source(/** @type {T | undefined} */ (undefined));
172
173
- #last_value = /** @type {T} */ (undefined);
+ #last_value = /** @type {T | undefined} */ (undefined);
174
#last_time = 0;
175
176
#inverse_mass = 1;
0 commit comments