turbodombuilder - v0.9.5
    Preparing search index...

    Type Alias StateInterpolator<Type, State, ClassType>

    StateInterpolator: (
        state: State,
        index: number,
        total: number,
        object: ClassType,
    ) => Type

    Type Parameters

    • Type
    • State extends string | number | symbol
    • ClassType extends object = Element

    Type Declaration

      • (state: State, index: number, total: number, object: ClassType): Type
      • Parameters

        • state: State

          The current state.

        • index: number

          The index of the object.

        • total: number

          The total number of objects.

        • object: ClassType

          The object being interpolated.

        Returns Type

    A function type that interpolates a value based on the state, index, total count, and the object.