FeatureFlagAllocation interface

Defines how to allocate feature flag variants based on context.

Properties

defaultWhenDisabled

The default variant to use when the feature flag is disabled.

defaultWhenEnabled

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

Allocates groups to variants.

group?: GroupAllocation[]

Property Value

percentile

Allocates percentiles to variants.

percentile?: PercentileAllocation[]

Property Value

seed

The seed used for random allocation.

seed?: string

Property Value

string

user

Allocates users to variants.

user?: UserAllocation[]

Property Value