ixfx
    Preparing search index...

    Type Alias InterpolateObjectOptions<T>

    type InterpolateObjectOptions<T> = {
        b: T;
        fallbackThreshold: number;
        optionsBooleans: Partial<BooleanInterpolateOptions>;
        optionsNumbers: InterpolateOptions;
        optionsStrings: Partial<StringInterpolateOptions>;
        useFallbacks?: boolean;
        valueEq: (a: any, b: any) => boolean;
    }

    Type Parameters

    • T
    Index

    Properties

    b: T
    fallbackThreshold: number

    Default interpolation options if there's no handler for that property name or type. It's a threshold from when return the A or B value. For example, with a threshold of 0.5, if progression is less than 0.5, return A, otherwise return B.

    optionsBooleans: Partial<BooleanInterpolateOptions>

    Default interpolation options for boolean values

    optionsNumbers: InterpolateOptions

    Default interpolation options for numeric values

    optionsStrings: Partial<StringInterpolateOptions>

    Default interpolation options for string values

    useFallbacks?: boolean
    valueEq: (a: any, b: any) => boolean