@launchdarkly/js-sdk-common 1.3.0-alpha.1 → 1.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,4 +24,20 @@ export interface LDEvaluationDetail {
|
|
|
24
24
|
*/
|
|
25
25
|
reason: LDEvaluationReason;
|
|
26
26
|
}
|
|
27
|
+
export interface LDEvaluationDetailTyped<TFlag> {
|
|
28
|
+
/**
|
|
29
|
+
* The result of the flag evaluation. This will be either one of the flag's variations or
|
|
30
|
+
* the default value that was passed to `LDClient.variationDetail`.
|
|
31
|
+
*/
|
|
32
|
+
value: TFlag;
|
|
33
|
+
/**
|
|
34
|
+
* The index of the returned value within the flag's list of variations, e.g. 0 for the
|
|
35
|
+
* first variation-- or `null` if the default value was returned.
|
|
36
|
+
*/
|
|
37
|
+
variationIndex?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* An object describing the main factor that influenced the flag evaluation value.
|
|
40
|
+
*/
|
|
41
|
+
reason: LDEvaluationReason;
|
|
42
|
+
}
|
|
27
43
|
//# sourceMappingURL=LDEvaluationDetail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LDEvaluationDetail.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
|
|
1
|
+
{"version":3,"file":"LDEvaluationDetail.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB,CAAC,KAAK;IAC5C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
|