API Reference / @gtkx/animated / ToProps
Type Alias: ToProps<T>
ToProps<
T> = {to?:GoalProp<T> |SpringToFn<T> |SpringChain<T>; } | [T] extends [IsPlainObject<T>] ?InlineToProps<T> :never
Defined in: node_modules/.pnpm/@react-spring+core@10.1.2_react@19.2.8/node_modules/@react-spring/core/dist/react-spring_core.modern.d.mts:800
A union type of all possible to prop values.
This is not recommended for function types. Instead, you should declare an overload for each to type. See SpringUpdateFn for an example.
The T parameter can be a set of animated values (as an object type) or a primitive type for a single animated value.
Type Parameters
T
T = any