import type { AnimationPropertyPath, ElementAnimations, NumberAnimationChannel, } from "@/lib/animation/types"; export function getNumberChannelForPath({ animations, propertyPath, }: { animations: ElementAnimations | undefined; propertyPath: AnimationPropertyPath; }): NumberAnimationChannel | undefined { const channel = animations?.channels[propertyPath]; if (!channel || channel.valueKind !== "number") { return undefined; } return channel; }