launchdarkly-react-client-sdk - v3.9.0
    Preparing search index...

    Interface LDEvaluationDetail

    An object that combines the result of a feature flag evaluation with information about how it was calculated.

    This is the result of calling LDClient.variationDetail.

    For more information, see the SDK reference guide.

    interface LDEvaluationDetail {
        reason?: LDEvaluationReason;
        value: any;
        variationIndex?: number;
    }
    Index

    Properties

    An object describing the main factor that influenced the flag evaluation value. This will be null/undefined if the SDK was not configured to get evaluation reasons.

    value: any

    The result of the flag evaluation. This will be either one of the flag's variations or the default value that was passed to LDClient.variationDetail.

    variationIndex?: number

    The index of the returned value within the flag's list of variations, e.g. 0 for the first variation-- or null if the default value was returned.