@@ -60,7 +60,7 @@ export interface IEppoClient {
60
60
getStringAssignment (
61
61
flagKey : string ,
62
62
subjectKey : string ,
63
- subjectAttributes : Record < string , AttributeType > ,
63
+ subjectAttributes : Attributes ,
64
64
defaultValue : string ,
65
65
) : string ;
66
66
@@ -70,7 +70,7 @@ export interface IEppoClient {
70
70
getBoolAssignment (
71
71
flagKey : string ,
72
72
subjectKey : string ,
73
- subjectAttributes : Record < string , AttributeType > ,
73
+ subjectAttributes : Attributes ,
74
74
defaultValue : boolean ,
75
75
) : boolean ;
76
76
@@ -86,7 +86,7 @@ export interface IEppoClient {
86
86
getBooleanAssignment (
87
87
flagKey : string ,
88
88
subjectKey : string ,
89
- subjectAttributes : Record < string , AttributeType > ,
89
+ subjectAttributes : Attributes ,
90
90
defaultValue : boolean ,
91
91
) : boolean ;
92
92
@@ -102,7 +102,7 @@ export interface IEppoClient {
102
102
getIntegerAssignment (
103
103
flagKey : string ,
104
104
subjectKey : string ,
105
- subjectAttributes : Record < string , AttributeType > ,
105
+ subjectAttributes : Attributes ,
106
106
defaultValue : number ,
107
107
) : number ;
108
108
@@ -118,7 +118,7 @@ export interface IEppoClient {
118
118
getNumericAssignment (
119
119
flagKey : string ,
120
120
subjectKey : string ,
121
- subjectAttributes : Record < string , AttributeType > ,
121
+ subjectAttributes : Attributes ,
122
122
defaultValue : number ,
123
123
) : number ;
124
124
@@ -134,7 +134,7 @@ export interface IEppoClient {
134
134
getJSONAssignment (
135
135
flagKey : string ,
136
136
subjectKey : string ,
137
- subjectAttributes : Record < string , AttributeType > ,
137
+ subjectAttributes : Attributes ,
138
138
defaultValue : object ,
139
139
) : object ;
140
140
@@ -328,7 +328,7 @@ export default class EppoClient implements IEppoClient {
328
328
public getStringAssignment (
329
329
flagKey : string ,
330
330
subjectKey : string ,
331
- subjectAttributes : Record < string , AttributeType > ,
331
+ subjectAttributes : Attributes ,
332
332
defaultValue : string ,
333
333
) : string {
334
334
return (
@@ -345,7 +345,7 @@ export default class EppoClient implements IEppoClient {
345
345
public getBoolAssignment (
346
346
flagKey : string ,
347
347
subjectKey : string ,
348
- subjectAttributes : Record < string , AttributeType > ,
348
+ subjectAttributes : Attributes ,
349
349
defaultValue : boolean ,
350
350
) : boolean {
351
351
return this . getBooleanAssignment ( flagKey , subjectKey , subjectAttributes , defaultValue ) ;
@@ -354,7 +354,7 @@ export default class EppoClient implements IEppoClient {
354
354
public getBooleanAssignment (
355
355
flagKey : string ,
356
356
subjectKey : string ,
357
- subjectAttributes : Record < string , AttributeType > ,
357
+ subjectAttributes : Attributes ,
358
358
defaultValue : boolean ,
359
359
) : boolean {
360
360
return (
@@ -371,7 +371,7 @@ export default class EppoClient implements IEppoClient {
371
371
public getIntegerAssignment (
372
372
flagKey : string ,
373
373
subjectKey : string ,
374
- subjectAttributes : Record < string , AttributeType > ,
374
+ subjectAttributes : Attributes ,
375
375
defaultValue : number ,
376
376
) : number {
377
377
return (
@@ -388,7 +388,7 @@ export default class EppoClient implements IEppoClient {
388
388
public getNumericAssignment (
389
389
flagKey : string ,
390
390
subjectKey : string ,
391
- subjectAttributes : Record < string , AttributeType > ,
391
+ subjectAttributes : Attributes ,
392
392
defaultValue : number ,
393
393
) : number {
394
394
return (
@@ -405,7 +405,7 @@ export default class EppoClient implements IEppoClient {
405
405
public getJSONAssignment (
406
406
flagKey : string ,
407
407
subjectKey : string ,
408
- subjectAttributes : Record < string , AttributeType > ,
408
+ subjectAttributes : Attributes ,
409
409
defaultValue : object ,
410
410
) : object {
411
411
return (
@@ -599,7 +599,7 @@ export default class EppoClient implements IEppoClient {
599
599
private getAssignmentVariation (
600
600
flagKey : string ,
601
601
subjectKey : string ,
602
- subjectAttributes : Record < string , AttributeType > ,
602
+ subjectAttributes : Attributes ,
603
603
defaultValue : EppoValue ,
604
604
expectedVariationType : VariationType ,
605
605
) : EppoValue {
@@ -644,7 +644,7 @@ export default class EppoClient implements IEppoClient {
644
644
public getAssignmentDetail (
645
645
flagKey : string ,
646
646
subjectKey : string ,
647
- subjectAttributes : Record < string , AttributeType > = { } ,
647
+ subjectAttributes : Attributes = { } ,
648
648
expectedVariationType ?: VariationType ,
649
649
) : FlagEvaluation {
650
650
validateNotBlank ( subjectKey , 'Invalid argument: subjectKey cannot be blank' ) ;
0 commit comments