UNPKG

@kameleoon/javascript-sdk-core

Version:
13 lines (12 loc) 547 B
import { EvaluationDataType } from '../../targeting/types'; import { ConditionDataType, ICondition } from './types'; import { Result } from 'ts-res'; import { KameleoonError } from '../../kameleoonError'; export declare class TargetExperimentCondition implements ICondition { private variationMatchType?; private variationId; private experimentId; constructor({ variationMatchType, variation, experiment, }: ConditionDataType); evaluate(data: EvaluationDataType): Result<boolean, KameleoonError>; private checkCondition; }