Skip to content

Commit cf69770

Browse files
authored
feat: Add inExperiment to evaluation reason. (#105)
The reason is already transmitted, but was not in the typings.
1 parent 7e490f4 commit cf69770

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

typings.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,14 @@ declare module 'launchdarkly-js-sdk-common' {
588588
* The key of the failed prerequisite flag, if the kind was `'PREREQUISITE_FAILED'`.
589589
*/
590590
prerequisiteKey?: string;
591+
592+
/**
593+
* Whether the evaluation was part of an experiment.
594+
*
595+
* This is true if the evaluation resulted in an experiment rollout and served one of
596+
* the variations in the experiment. Otherwise it is false or undefined.
597+
*/
598+
inExperiment?: boolean;
591599
}
592600

593601
/**

0 commit comments

Comments
 (0)