You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't use the following code in TypeScript because it gives an error that it expects a second argument.
That would be the options argument but it should be optional looking at the docs.
import { tweened } from 'svelte/motion';
let test = tweened(0);
test.set(100);
$test = 0;
Even $test = 0 fails because of an expected second argument.
You can't use the following code in TypeScript because it gives an error that it expects a second argument.
That would be the options argument but it should be optional looking at the docs.
Even
$test = 0
fails because of an expected second argument.You can find the type declaration here:
svelte/src/runtime/motion/tweened.ts
Line 67 in 1c39f60
Maybe there are event more bugs like that in other type declerations but I didn't check them yet.
The text was updated successfully, but these errors were encountered: