gradum-kit - v0.1.0
    Preparing search index...

    Type Alias ReifectInterpolator<Type, ClassType>

    ReifectInterpolator: (index: number, total: number, object: ClassType) => Type

    Type Parameters

    • Type

      The type of the configured value.

    • ClassType extends object = Element

      The type of the attached object.

    Type Declaration

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

        • index: number

          The object's position among the attached objects.

        • total: number

          How many objects are attached in total.

        • object: ClassType

          The object the value is being computed for.

        Returns Type

        The value to use for that object.

    Computes a value per attached object, so one configuration can vary across the objects it is applied to — staggering a delay by index, for instance.