Skip to main content
Version: Next

FeatureFlag

FeatureFlag

Class representing a feature flag in CommandKit.

Signature
class FeatureFlag<R, T> {
constructor(options: FeatureFlagDefinition<R, T>)
execute(res?: T) => Promise<R>;
}

constructor

method
(options: FeatureFlagDefinition<R, T>) => FeatureFlag

Create a new feature flag.

execute

method
(res?: T) => Promise<R>

Execute the feature flag evaluation.