Type definition for the feature flags object
Creates a new FeatureFlags instance
Type definition for the feature flags object
Checks if a feature is enabled
The feature name to check
boolean - True if the feature is enabled
Checks if a feature is disabled
The feature name to check
boolean - True if the feature is disabled
Checks if a feature exists in the flags
The feature name to check
boolean - True if the feature exists
Conditionally executes callbacks based on feature flag state
The feature name to check
Callback to execute when feature is enabled
OptionaldisabledCallback: () => DisabledResult
Optional callback to execute when feature is disabled
The result of the executed callback
A light weight implementation of feature flags to conditionally enable experimental and legacy features.
Example
Example