You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(clientStorage.segments.getRegisteredSegments()).toEqual(['segment1']);// main client membership is set via the rollout plan `memberships` field
114
+
expect(sharedClientStorage.segments.getRegisteredSegments()).toEqual(['segment1']);// shared client membership is set via the rollout plan `segmentChanges` field
* A JSON-serializable plain object that defines the format of rollout plan data to preload the SDK cache with feature flags and segments.
1032
1032
*/
1033
1033
typeRolloutPlan=Object;
1034
+
/**
1035
+
* Options for the `factory.getRolloutPlan` method.
1036
+
*/
1037
+
typeRolloutPlanOptions={
1038
+
/**
1039
+
* Optional list of keys to generate the rollout plan snapshot with the memberships of the given keys.
1040
+
*
1041
+
* @defaultValue `undefined`
1042
+
*/
1043
+
keys?: SplitKey[];
1044
+
/**
1045
+
* Optional flag to expose segments data in the rollout plan snapshot.
1046
+
*
1047
+
* @defaultValue `false`
1048
+
*/
1049
+
exposeSegments?: boolean;
1050
+
};
1034
1051
/**
1035
1052
* Impression listener interface. This is the interface that needs to be implemented
1036
1053
* by the element you provide to the SDK as impression listener.
@@ -1580,7 +1597,7 @@ declare namespace SplitIO {
1580
1597
* @param keys - Optional list of keys to generate the rollout plan snapshot with the memberships of the given keys, rather than the complete segments data.
1581
1598
* @returns The current snapshot of the SDK rollout plan.
0 commit comments