diff --git a/src/runtime/motion/spring.ts b/src/runtime/motion/spring.ts index ff625ec41f2e..64d17a058b26 100644 --- a/src/runtime/motion/spring.ts +++ b/src/runtime/motion/spring.ts @@ -58,7 +58,7 @@ interface SpringUpdateOpts { type Updater = (target_value: T, value: T) => T; -interface Spring extends Readable{ +export interface Spring extends Readable{ set: (new_value: T, opts?: SpringUpdateOpts) => Promise; update: (fn: Updater, opts?: SpringUpdateOpts) => Promise; precision: number; diff --git a/src/runtime/motion/tweened.ts b/src/runtime/motion/tweened.ts index 83434cdff62f..f0ede9add731 100644 --- a/src/runtime/motion/tweened.ts +++ b/src/runtime/motion/tweened.ts @@ -63,7 +63,7 @@ interface Options { type Updater = (target_value: T, value: T) => T; -interface Tweened extends Readable { +export interface Tweened extends Readable { set(value: T, opts?: Options): Promise; update(updater: Updater, opts?: Options): Promise;