export interfaces Spring and Tweened (#6122)

fixes #6070
pull/6128/head
Tim 4 years ago committed by GitHub
parent 50dcc2aaa4
commit dd7b5afbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,7 +58,7 @@ interface SpringUpdateOpts {
type Updater<T> = (target_value: T, value: T) => T;
interface Spring<T> extends Readable<T>{
export interface Spring<T> extends Readable<T>{
set: (new_value: T, opts?: SpringUpdateOpts) => Promise<void>;
update: (fn: Updater<T>, opts?: SpringUpdateOpts) => Promise<void>;
precision: number;

@ -63,7 +63,7 @@ interface Options<T> {
type Updater<T> = (target_value: T, value: T) => T;
interface Tweened<T> extends Readable<T> {
export interface Tweened<T> extends Readable<T> {
set(value: T, opts?: Options<T>): Promise<void>;
update(updater: Updater<T>, opts?: Options<T>): Promise<void>;

Loading…
Cancel
Save