Skip to content

Documentation / @ripl/core / ElementInterpolators

Type Alias: ElementInterpolators<TState> ​

ElementInterpolators<TState> = { [TKey in keyof TState]?: OneOrMore<ElementInterpolator<NonNullable<TState[TKey]>>> }

Defined in: packages/core/src/core/element.ts:281

A map of interpolator factories keyed by state property, used to override default interpolation behavior. A property may declare an ordered list, tried in order: the first factory whose test passes wins, and a property no factory claims falls back to interpolateAny.

Type Parameters ​

Type Parameter
TState extends BaseElementState