UNPKG

material-motion

Version:

Makes it easy to add rich, interactive motion to your application.

16 lines (15 loc) 1.13 kB
import { Constructor, Dimensions, MotionMathOperable, Observable, ObservableWithMotionOperators, Point2D } from '../types'; import { _ReactiveMapOptions } from './foundation/_reactiveMap'; export declare type DividedByValue<U> = U | Observable<U>; export declare type DividedByArgs<U> = _ReactiveMapOptions & { value$: DividedByValue<U>; }; export interface MotionDivisible<T> { dividedBy<U extends T & number>(kwargs: DividedByArgs<U>): ObservableWithMotionOperators<number>; dividedBy<U extends T & number>(value$: DividedByValue<U>): ObservableWithMotionOperators<number>; dividedBy<U extends T & Point2D>(kwargs: DividedByArgs<U>): ObservableWithMotionOperators<U>; dividedBy<U extends T & Point2D>(value$: DividedByValue<U>): ObservableWithMotionOperators<U>; dividedBy<U extends T & Dimensions>(kwargs: DividedByArgs<U>): ObservableWithMotionOperators<U>; dividedBy<U extends T & Dimensions>(value$: DividedByValue<U>): ObservableWithMotionOperators<U>; } export declare function withDividedBy<T, S extends Constructor<MotionMathOperable<T>>>(superclass: S): S & Constructor<MotionDivisible<T>>;