Skip to content

Commit

Permalink
feat: Add inExperiment to evaluation reason. (#105)
Browse files Browse the repository at this point in the history
The reason is already transmitted, but was not in the typings.
  • Loading branch information
kinyoklion authored Jun 18, 2024
1 parent 7e490f4 commit cf69770
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,14 @@ declare module 'launchdarkly-js-sdk-common' {
* The key of the failed prerequisite flag, if the kind was `'PREREQUISITE_FAILED'`.
*/
prerequisiteKey?: string;

/**
* Whether the evaluation was part of an experiment.
*
* This is true if the evaluation resulted in an experiment rollout and served one of
* the variations in the experiment. Otherwise it is false or undefined.
*/
inExperiment?: boolean;
}

/**
Expand Down

0 comments on commit cf69770

Please sign in to comment.