Skip to content

Commit 1415eee

Browse files
authored
Update spring.js
1 parent d4d397d commit 1415eee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte/src/motion/spring.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ export class Spring {
167167
#damping = source(0.8);
168168
#precision = source(0.01);
169169

170-
#current = source(/** @type {T} */ (undefined));
171-
#target = source(/** @type {T} */ (undefined));
170+
#current = source(/** @type {T | undefined} */ (undefined));
171+
#target = source(/** @type {T | undefined} */ (undefined));
172172

173-
#last_value = /** @type {T} */ (undefined);
173+
#last_value = /** @type {T | undefined} */ (undefined);
174174
#last_time = 0;
175175

176176
#inverse_mass = 1;

0 commit comments

Comments
 (0)