mirror of https://github.com/sveltejs/svelte
fix: export TweenedOptions, SpringOpts, SpringUpdateOpts, and Updater from svelte/motion (#16151)
parent
0adc22c9ae
commit
c9fe67306c
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: export TweenedOptions, SpringOpts, SpringUpdateOpts, and Updater from svelte/motion (#16151)
|
||||
@ -0,0 +1,22 @@
|
||||
import {
|
||||
type TweenedOptions,
|
||||
type SpringOpts,
|
||||
type SpringUpdateOpts,
|
||||
type Updater
|
||||
} from 'svelte/motion';
|
||||
|
||||
let tweenOptions: TweenedOptions<number> = {
|
||||
delay: 100,
|
||||
duration: 400
|
||||
};
|
||||
|
||||
let springOptions: SpringOpts = {
|
||||
stiffness: 0.1,
|
||||
damping: 0.5
|
||||
};
|
||||
|
||||
let springUpdateOptions: SpringUpdateOpts = {
|
||||
instant: true
|
||||
};
|
||||
|
||||
let updater: Updater<number> = (target, value) => target + value;
|
||||
Loading…
Reference in new issue