FeatureFlagAllocation interface
Defines how to allocate feature flag variants based on context.
Properties
| default |
The default variant to use when the feature flag is disabled. |
| default |
The default variant to use when the feature flag is enabled but not allocated. |
| group | Allocates groups to variants. |
| percentile | Allocates percentiles to variants. |
| seed | The seed used for random allocation. |
| user | Allocates users to variants. |
Property Details
defaultWhenDisabled
The default variant to use when the feature flag is disabled.
defaultWhenDisabled?: string
Property Value
string
defaultWhenEnabled
The default variant to use when the feature flag is enabled but not allocated.
defaultWhenEnabled?: string
Property Value
string
group
percentile
Allocates percentiles to variants.
percentile?: PercentileAllocation[]
Property Value
seed
The seed used for random allocation.
seed?: string
Property Value
string