@@ -60,7 +60,7 @@ export interface IEppoClient {
6060 getStringAssignment (
6161 flagKey : string ,
6262 subjectKey : string ,
63- subjectAttributes : Record < string , AttributeType > ,
63+ subjectAttributes : Attributes ,
6464 defaultValue : string ,
6565 ) : string ;
6666
@@ -70,7 +70,7 @@ export interface IEppoClient {
7070 getBoolAssignment (
7171 flagKey : string ,
7272 subjectKey : string ,
73- subjectAttributes : Record < string , AttributeType > ,
73+ subjectAttributes : Attributes ,
7474 defaultValue : boolean ,
7575 ) : boolean ;
7676
@@ -86,7 +86,7 @@ export interface IEppoClient {
8686 getBooleanAssignment (
8787 flagKey : string ,
8888 subjectKey : string ,
89- subjectAttributes : Record < string , AttributeType > ,
89+ subjectAttributes : Attributes ,
9090 defaultValue : boolean ,
9191 ) : boolean ;
9292
@@ -102,7 +102,7 @@ export interface IEppoClient {
102102 getIntegerAssignment (
103103 flagKey : string ,
104104 subjectKey : string ,
105- subjectAttributes : Record < string , AttributeType > ,
105+ subjectAttributes : Attributes ,
106106 defaultValue : number ,
107107 ) : number ;
108108
@@ -118,7 +118,7 @@ export interface IEppoClient {
118118 getNumericAssignment (
119119 flagKey : string ,
120120 subjectKey : string ,
121- subjectAttributes : Record < string , AttributeType > ,
121+ subjectAttributes : Attributes ,
122122 defaultValue : number ,
123123 ) : number ;
124124
@@ -134,7 +134,7 @@ export interface IEppoClient {
134134 getJSONAssignment (
135135 flagKey : string ,
136136 subjectKey : string ,
137- subjectAttributes : Record < string , AttributeType > ,
137+ subjectAttributes : Attributes ,
138138 defaultValue : object ,
139139 ) : object ;
140140
@@ -328,7 +328,7 @@ export default class EppoClient implements IEppoClient {
328328 public getStringAssignment (
329329 flagKey : string ,
330330 subjectKey : string ,
331- subjectAttributes : Record < string , AttributeType > ,
331+ subjectAttributes : Attributes ,
332332 defaultValue : string ,
333333 ) : string {
334334 return (
@@ -345,7 +345,7 @@ export default class EppoClient implements IEppoClient {
345345 public getBoolAssignment (
346346 flagKey : string ,
347347 subjectKey : string ,
348- subjectAttributes : Record < string , AttributeType > ,
348+ subjectAttributes : Attributes ,
349349 defaultValue : boolean ,
350350 ) : boolean {
351351 return this . getBooleanAssignment ( flagKey , subjectKey , subjectAttributes , defaultValue ) ;
@@ -354,7 +354,7 @@ export default class EppoClient implements IEppoClient {
354354 public getBooleanAssignment (
355355 flagKey : string ,
356356 subjectKey : string ,
357- subjectAttributes : Record < string , AttributeType > ,
357+ subjectAttributes : Attributes ,
358358 defaultValue : boolean ,
359359 ) : boolean {
360360 return (
@@ -371,7 +371,7 @@ export default class EppoClient implements IEppoClient {
371371 public getIntegerAssignment (
372372 flagKey : string ,
373373 subjectKey : string ,
374- subjectAttributes : Record < string , AttributeType > ,
374+ subjectAttributes : Attributes ,
375375 defaultValue : number ,
376376 ) : number {
377377 return (
@@ -388,7 +388,7 @@ export default class EppoClient implements IEppoClient {
388388 public getNumericAssignment (
389389 flagKey : string ,
390390 subjectKey : string ,
391- subjectAttributes : Record < string , AttributeType > ,
391+ subjectAttributes : Attributes ,
392392 defaultValue : number ,
393393 ) : number {
394394 return (
@@ -405,7 +405,7 @@ export default class EppoClient implements IEppoClient {
405405 public getJSONAssignment (
406406 flagKey : string ,
407407 subjectKey : string ,
408- subjectAttributes : Record < string , AttributeType > ,
408+ subjectAttributes : Attributes ,
409409 defaultValue : object ,
410410 ) : object {
411411 return (
@@ -599,7 +599,7 @@ export default class EppoClient implements IEppoClient {
599599 private getAssignmentVariation (
600600 flagKey : string ,
601601 subjectKey : string ,
602- subjectAttributes : Record < string , AttributeType > ,
602+ subjectAttributes : Attributes ,
603603 defaultValue : EppoValue ,
604604 expectedVariationType : VariationType ,
605605 ) : EppoValue {
@@ -644,7 +644,7 @@ export default class EppoClient implements IEppoClient {
644644 public getAssignmentDetail (
645645 flagKey : string ,
646646 subjectKey : string ,
647- subjectAttributes : Record < string , AttributeType > = { } ,
647+ subjectAttributes : Attributes = { } ,
648648 expectedVariationType ?: VariationType ,
649649 ) : FlagEvaluation {
650650 validateNotBlank ( subjectKey , 'Invalid argument: subjectKey cannot be blank' ) ;
0 commit comments