@launchdarkly/react-native-client-sdk
Version:
React Native LaunchDarkly SDK
26 lines • 1.04 kB
TypeScript
import { LDEvaluationDetail as CommonDetail, LDEvaluationDetailTyped as CommonDetailTyped, LDEvaluationReason } from '@launchdarkly/js-client-sdk-common';
/**
* An object that combines the result of a feature flag evaluation with information about
* how it was calculated.
*
* This is the result of calling `LDClient.variationDetail`.
*/
export type LDEvaluationDetail = Omit<CommonDetail, 'reason'> & {
/**
* An optional object describing the main factor that influenced the flag evaluation value.
*/
reason: LDEvaluationReason | null;
};
/**
* An object that combines the result of a feature flag evaluation with information about
* how it was calculated.
*
* This is the result of calling detailed variation methods.
*/
export type LDEvaluationDetailTyped<TFlag> = Omit<CommonDetailTyped<TFlag>, 'reason'> & {
/**
* An optional object describing the main factor that influenced the flag evaluation value.
*/
reason: LDEvaluationReason | null;
};
//# sourceMappingURL=LDEvaluationDetail.d.ts.map