@farmart-tech/brave-client-sdk
    Preparing search index...

    Interface FeatureEvaluationResult

    Detailed result of a feature flag evaluation.

    interface FeatureEvaluationResult {
        conditionMatched: boolean;
        deviceLevelOverride?: boolean;
        isEnabled: boolean;
        isReleaseDatePassed: boolean;
        reason: string;
        rolloutApplied?: {
            evaluatedValue?: number;
            matchedStep?: { date: string; percentage: number };
            type: "percentage" | "step" | null;
            value: number;
        };
    }
    Index

    Properties

    conditionMatched: boolean

    Whether the target conditions were met.

    deviceLevelOverride?: boolean

    Whether a device-level override (playground) was applied.

    isEnabled: boolean

    Final determination of whether the feature is enabled.

    isReleaseDatePassed: boolean

    Whether the release date constraint (if any) was satisfied.

    reason: string

    Human-readable explanation of the evaluation result.

    rolloutApplied?: {
        evaluatedValue?: number;
        matchedStep?: { date: string; percentage: number };
        type: "percentage" | "step" | null;
        value: number;
    }

    Information about the rollout strategy applied, if any.

    Type Declaration

    • OptionalevaluatedValue?: number

      Optional value calculated during evaluation.

    • OptionalmatchedStep?: { date: string; percentage: number }

      The specific step that matched, for step rollouts.

    • type: "percentage" | "step" | null

      Type of rollout applied.

    • value: number

      Effective percentage used for evaluation.