import { DeepPartial } from '../deep-partial'; import { TweenOptions } from './opts'; import { Tween } from './tween'; import { tween } from './tween-factory-func'; export type TweenFactory = (target: T, propDests: DeepPartial) => Tween; export function makeTweenFactory(opts: TweenOptions): TweenFactory { return (target: T, propDests: DeepPartial) => tween(target, propDests, opts); }