Skip to content

Commit

Permalink
chore: upgrade to TypeScript 5
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Apr 11, 2023
1 parent c729829 commit c9a502a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 33 deletions.
39 changes: 8 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"source-map-support": "^0.5.21",
"tiny-glob": "^0.2.9",
"tslib": "^2.5.0",
"typescript": "^3.7.5",
"typescript": "^5.0.4",
"util": "^0.12.5"
}
}
2 changes: 1 addition & 1 deletion src/runtime/motion/tweened.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function tweened<T>(value?: T, defaults: Options<T> = {}): Tweened<T> {

const elapsed = now - start;

if (elapsed > duration) {
if (elapsed > <number> duration) {
store.set(value = new_value);
return false;
}
Expand Down

0 comments on commit c9a502a

Please sign in to comment.