From 86e78b38e444caa47d11a60cd092360f32089d22 Mon Sep 17 00:00:00 2001 From: Tim <53128790+Gohlisch@users.noreply.github.com> Date: Wed, 24 Mar 2021 15:46:46 +0100 Subject: [PATCH] export interfaces Spring and Tweened (#6122) fixes #6070 --- src/runtime/motion/spring.ts | 2 +- src/runtime/motion/tweened.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/motion/spring.ts b/src/runtime/motion/spring.ts index ff625ec41f..64d17a058b 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 83434cdff6..f0ede9add7 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;