@@ -21,7 +21,7 @@ import {
2121import { Indexable , Falsy } from './types/common'
2222import { runAsync , scheduleProps , RunAsyncState , AsyncResult } from './runAsync'
2323import { SpringPhase , CREATED , ACTIVE , IDLE } from './SpringPhase'
24- import { interpolateTo } from './helpers'
24+ import { inferTo } from './helpers'
2525import { SpringValue } from './SpringValue'
2626import { FrameValue } from './FrameValue'
2727
@@ -103,7 +103,7 @@ export class Controller<State extends Indexable = UnknownProps>
103103 constructor ( props ?: ControllerProps < State > ) {
104104 this . _onFrame = this . _onFrame . bind ( this )
105105 if ( props ) {
106- const { to, ...initialProps } = interpolateTo ( props as any )
106+ const { to, ...initialProps } = inferTo ( props as any )
107107 this . _initialProps = initialProps
108108 if ( to ) this . start ( { to } )
109109 }
@@ -261,7 +261,7 @@ export class Controller<State extends Indexable = UnknownProps>
261261
262262 /** Prepare an update with the given props. */
263263 protected _prepareUpdate ( propsArg : ControllerProps < State > ) {
264- const props : PendingProps < State > = interpolateTo ( propsArg ) as any
264+ const props : PendingProps < State > = inferTo ( propsArg ) as any
265265 let { from, to } = props as any
266266
267267 // Avoid sending async "to" prop to springs.
0 commit comments