PersonalizationProvider
The PersonalizationProvider abstract class is a class from which all custom personalization providers inherit from. There is no default implementation but the first integrated 3d Party solution is the GrowthBookProvider.
import { PersonalizationProvider } from '@archibald/personalization';
export class ProjectPersonalizationProvider extends PersonalizationProvider {}
getFeatureFlag
Should handle calls to the FeatureFlag System, which returns specific info about the feature flag.
To get Request infos use the getRequest function.
Signature
getFeatureFlag(): Promise<FeatureFlag>
isFeatureFlagActive
Should handle calls to the FeatureFlag System, which returns if the feature flag is active or not.
To get Request infos use the getRequest function.
Signature
isFeatureFlagActive(): Promise<boolean>