@@ -93,6 +93,17 @@ export interface IContainerExperiment<T> {
93
93
treatmentVariationEntries : Array < T > ;
94
94
}
95
95
96
+ export type EppoClientParameters = {
97
+ // Dispatcher for arbitrary, application-level events (not to be confused with Eppo specific assignment
98
+ // or bandit events). These events are application-specific and captures by EppoClient#track API.
99
+ eventDispatcher ?: EventDispatcher ;
100
+ flagConfigurationStore : IConfigurationStore < Flag | ObfuscatedFlag > ;
101
+ banditVariationConfigurationStore ?: IConfigurationStore < BanditVariation [ ] > ;
102
+ banditModelConfigurationStore ?: IConfigurationStore < BanditParameters > ;
103
+ configurationRequestParameters ?: FlagConfigurationRequestParameters ;
104
+ isObfuscated ?: boolean ;
105
+ } ;
106
+
96
107
export default class EppoClient {
97
108
private eventDispatcher : EventDispatcher ;
98
109
private readonly assignmentEventsQueue : BoundedEventQueue < IAssignmentEvent > =
@@ -121,16 +132,7 @@ export default class EppoClient {
121
132
banditVariationConfigurationStore,
122
133
banditModelConfigurationStore,
123
134
configurationRequestParameters,
124
- } : {
125
- // Dispatcher for arbitrary, application-level events (not to be confused with Eppo specific assignment
126
- // or bandit events). These events are application-specific and captures by EppoClient#track API.
127
- eventDispatcher ?: EventDispatcher ;
128
- flagConfigurationStore : IConfigurationStore < Flag | ObfuscatedFlag > ;
129
- banditVariationConfigurationStore ?: IConfigurationStore < BanditVariation [ ] > ;
130
- banditModelConfigurationStore ?: IConfigurationStore < BanditParameters > ;
131
- configurationRequestParameters ?: FlagConfigurationRequestParameters ;
132
- isObfuscated ?: boolean ;
133
- } ) {
135
+ } : EppoClientParameters ) {
134
136
this . eventDispatcher = eventDispatcher ;
135
137
this . flagConfigurationStore = flagConfigurationStore ;
136
138
this . banditVariationConfigurationStore = banditVariationConfigurationStore ;
0 commit comments