import {Interpolation, InterpolatorArgs, Globals} from "@react-spring/web";
import {getAnimated} from "@react-spring/animated";
export class FixedInterpolation extends Interpolation {
constructor(readonly source: unknown, args: InterpolatorArgs) {
super(source, args);
getAnimated(this)!.setValue(this._get())
}
}
Globals.assign({to: (source, args) => new FixedInterpolation(source, args)})