UNPKG

@kameleoon/javascript-sdk-core

Version:
12 lines (11 loc) 515 B
import { Result } from 'ts-res'; import { KameleoonError } from '../../kameleoonError'; import { EvaluationDataType } from '../../targeting/types'; import { ConditionDataType, ICondition } from './types'; export declare class TargetFeatureFlag implements ICondition { private featureId?; private ruleId?; private variationKey?; constructor({ featureFlagId, variationKey, ruleId }: ConditionDataType); evaluate({ variationData, ruleMap, }: EvaluationDataType): Result<boolean, KameleoonError>; }