Package version:

Value of a feature flag

interface FeatureFlagValue {
    conditions: {
        clientFilters: {
            name: string;
            parameters?: any;
        }[];
    };
    description?: string;
    displayName?: string;
    enabled: boolean;
    id?: string;
}

Properties

conditions: {
    clientFilters: {
        name: string;
        parameters?: any;
    }[];
}

A Feature filter consistently evaluates the state of a feature flag. Our feature management library supports three types of built-in filters: Targeting, TimeWindow, and Percentage. Custom filters can also be created based on different factors, such as device used, browser types, geographic location, etc.

More Info

description?: string

Description of the feature.

displayName?: string

Display name for the feature to use for display rather than the ID.

enabled: boolean

Boolean flag to say if the feature flag is enabled.

id?: string

Id for the feature flag.