Available feature switches for conditional functionality.
Feature switches enable gradual rollout and A/B testing of new features. This interface is augmented by feature modules to register their switches.
declare module '@limetech/lime-web-components' { interface FeatureSwitches { advancedSearch: boolean; newUIDesign: boolean; betaFeatures: boolean; }}// Needed so the file is a module, which is what makes the block above merge// with the interface instead of replacing the package declaration.export {};if (platform.isFeatureEnabled('advancedSearch')) { // Enable advanced search functionality} Copy
declare module '@limetech/lime-web-components' { interface FeatureSwitches { advancedSearch: boolean; newUIDesign: boolean; betaFeatures: boolean; }}// Needed so the file is a module, which is what makes the block above merge// with the interface instead of replacing the package declaration.export {};if (platform.isFeatureEnabled('advancedSearch')) { // Enable advanced search functionality}
Available feature switches for conditional functionality.
Feature switches enable gradual rollout and A/B testing of new features. This interface is augmented by feature modules to register their switches.
Example: How features augment this interface