Skip to content

API Reference / @gtkx/animated / ToValues

Type Alias: ToValues<Props, AndForward>

ToValues<Props, AndForward> = unknown & AndForward extends true ? ForwardProps<Props> : unknown & Props extends object ? Exclude<Props["to"], Function | ReadonlyArray<any>> extends infer To ? ForwardProps<[To] extends [object] ? To : Partial<Extract<To, object>>> : never : unknown

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:974

Pick the values of the to prop. Forward props are not included.

Type Parameters

Props

Props extends object

AndForward

AndForward = true

Released under the MPL-2.0 License.