export interfaces Spring and Tweened

pull/6122/head
timgohlisch 6 years ago
parent 798d1f9b5a
commit 1a87ca7849

@ -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