Skip to main content
Version: 1.x

FlagConfiguration

FlagConfiguration​

Configuration returned by external flag providers

Signature
interface FlagConfiguration {
enabled: boolean;
config?: Record<string, any>;
percentage?: number;
targeting?: {
segments?: string[];
rules?: Array<{
condition: string;
value: any;
}>;
};
}

enabled​

property
boolean

Whether the flag is enabled/disabled at the provider level

config​

property
Record<string, any>

Optional configuration data that can be used in the decide function

percentage​

property
number

Optional percentage for gradual rollouts (0-100)

targeting​

property
{ segments?: string[]; rules?: Array<{ condition: string; value: any; }>; }

Optional targeting rules or segments