material-motion
Version:
Makes it easy to add rich, interactive motion to your application.
11 lines (10 loc) • 606 B
TypeScript
import { Constructor, MotionReactiveMappable, Observable, ObservableWithMotionOperators } from '../types';
export declare type IsAnyOfCandidates<T> = Array<T | Observable<T>>;
export declare type IsAnyOfArgs<T> = {
candidates: IsAnyOfCandidates<T>;
};
export interface MotionIsAnyOfable<T> {
isAnyOf(kwargs: IsAnyOfArgs<T>): ObservableWithMotionOperators<boolean>;
isAnyOf(candidates: IsAnyOfCandidates<T>): ObservableWithMotionOperators<boolean>;
}
export declare function withIsAnyOf<T, S extends Constructor<MotionReactiveMappable<T>>>(superclass: S): S & Constructor<MotionIsAnyOfable<T>>;