FeatureFlag
FeatureFlag
Class representing a feature flag in CommandKit.
new FeatureFlag(options)
Parameter | Type | Optional | Description |
---|---|---|---|
options | FeatureFlagDefinition<R, T> | ❌ | The options for the feature flag. |
Properties
public options: any
The options for the feature flag.
Methods
public execute(res?): Promise<R>
Execute the feature flag evaluation.
Parameter | Type | Optional | Description |
---|---|---|---|
res | T | ✅ | Optional entities to use for evaluation. If not provided, it will call the identify function. |