FeatureFlagsPlugin factory.
Registers a FeatureFlagService implementing IFeatureFlags under CAPABILITIES.FEATURE_FLAGS, a feature-flags health indicator, and an onClose hook that stops the provider.
FeatureFlagService
IFeatureFlags
CAPABILITIES.FEATURE_FLAGS
feature-flags
onClose
Plugin configuration (discriminated union).
The plugin instance.
import { FeatureFlagsPlugin } from '@setu-ts/feature-flags-plugin';app.register(FeatureFlagsPlugin({ provider: 'config', options: { flags: { 'beta': { enabled: true }, }, },})); Copy
import { FeatureFlagsPlugin } from '@setu-ts/feature-flags-plugin';app.register(FeatureFlagsPlugin({ provider: 'config', options: { flags: { 'beta': { enabled: true }, }, },}));
0.1.0
FeatureFlagsPlugin factory.
Registers a
FeatureFlagServiceimplementingIFeatureFlagsunderCAPABILITIES.FEATURE_FLAGS, afeature-flagshealth indicator, and anonClosehook that stops the provider.