@qyu/anim-core
Version:
Animation definition and implementation
17 lines (16 loc) • 621 B
TypeScript
import type { Anim } from "../type/Anim.js";
import type { Anim_InferPoint } from "../type/Anim_InferPoint.js";
export type AnimMergeMap_Point<ChildPoints extends {
[K in keyof any]: any;
}> = {
+readonly [K in keyof ChildPoints]: ChildPoints[K];
};
type Src_Generic = {
readonly [K in keyof any]: Anim;
};
type Src_PointMerge<Src extends Src_Generic> = AnimMergeMap_Point<{
[K in keyof Src]: Anim_InferPoint<Src[K]>;
}>;
type Src_AnimMerge<Src extends Src_Generic> = Anim<Src_PointMerge<Src>>;
export declare const anim_new_mergemap: <Src extends Src_Generic>(src: Src) => Src_AnimMerge<Src>;
export {};