@@ -76,6 +76,14 @@ export interface IEppoClient {
76
76
subjectAttributes ?: Record < string , any > ,
77
77
assignmentHooks ?: IAssignmentHooks ,
78
78
) : string | null ;
79
+
80
+ getParsedJSONAssignment (
81
+ subjectKey : string ,
82
+ flagKey : string ,
83
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
+ subjectAttributes ?: Record < string , any > ,
85
+ assignmentHooks ?: IAssignmentHooks ,
86
+ ) : object | null ;
79
87
}
80
88
81
89
export default class EppoClient implements IEppoClient {
@@ -101,7 +109,8 @@ export default class EppoClient implements IEppoClient {
101
109
public getStringAssignment (
102
110
subjectKey : string ,
103
111
flagKey : string ,
104
- subjectAttributes : Record < string , EppoValue > = { } ,
112
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
113
+ subjectAttributes : Record < string , any > = { } ,
105
114
assignmentHooks ?: IAssignmentHooks | undefined ,
106
115
) : string | null {
107
116
return (
@@ -118,7 +127,8 @@ export default class EppoClient implements IEppoClient {
118
127
getBoolAssignment (
119
128
subjectKey : string ,
120
129
flagKey : string ,
121
- subjectAttributes : Record < string , EppoValue > = { } ,
130
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
131
+ subjectAttributes : Record < string , any > = { } ,
122
132
assignmentHooks ?: IAssignmentHooks | undefined ,
123
133
) : boolean | null {
124
134
return (
@@ -152,7 +162,8 @@ export default class EppoClient implements IEppoClient {
152
162
public getJSONStringAssignment (
153
163
subjectKey : string ,
154
164
flagKey : string ,
155
- subjectAttributes : Record < string , EppoValue > = { } ,
165
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
+ subjectAttributes : Record < string , any > = { } ,
156
167
assignmentHooks ?: IAssignmentHooks | undefined ,
157
168
) : string | null {
158
169
return (
@@ -169,7 +180,8 @@ export default class EppoClient implements IEppoClient {
169
180
public getParsedJSONAssignment (
170
181
subjectKey : string ,
171
182
flagKey : string ,
172
- subjectAttributes : Record < string , EppoValue > = { } ,
183
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
184
+ subjectAttributes : Record < string , any > = { } ,
173
185
assignmentHooks ?: IAssignmentHooks | undefined ,
174
186
) : object | null {
175
187
return (
@@ -186,7 +198,8 @@ export default class EppoClient implements IEppoClient {
186
198
private getAssignmentVariation (
187
199
subjectKey : string ,
188
200
flagKey : string ,
189
- subjectAttributes : Record < string , EppoValue > = { } ,
201
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
202
+ subjectAttributes : Record < string , any > = { } ,
190
203
assignmentHooks : IAssignmentHooks | undefined ,
191
204
valueType ?: ValueType ,
192
205
) : EppoValue {
@@ -292,7 +305,8 @@ export default class EppoClient implements IEppoClient {
292
305
allocationKey : string ,
293
306
variation : EppoValue ,
294
307
subjectKey : string ,
295
- subjectAttributes : Record < string , EppoValue > | undefined = { } ,
308
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
309
+ subjectAttributes : Record < string , any > | undefined = { } ,
296
310
) {
297
311
const event : IAssignmentEvent = {
298
312
allocation : allocationKey ,
0 commit comments