Skip to content

Commit c072943

Browse files
committed
Fixed syntax error on build
Note: It's important to run npm pack to ensure that everything actually passes.
1 parent a38ef14 commit c072943

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

js-client-sdk-common.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class EppoClient implements IEppoClient {
2525
// Warning: (ae-forgotten-export) The symbol "IConfigurationStore" needs to be exported by the entry point index.d.ts
2626
constructor(configurationStore: IConfigurationStore);
2727
// (undocumented)
28-
getAssignment(subjectKey: string, experimentKey: string, subjectAttributes?: {}): string;
28+
getAssignment(subjectKey: string, experimentKey: string, subjectAttributes?: {}): Promise<string>;
2929
// (undocumented)
3030
setLogger(logger: IAssignmentLogger): void;
3131
}
@@ -55,7 +55,7 @@ export interface IAssignmentLogger {
5555

5656
// @public
5757
export interface IEppoClient {
58-
getAssignment(subjectKey: string, experimentKey: string, subjectAttributes?: Record<string, any>): string;
58+
getAssignment(subjectKey: string, experimentKey: string, subjectAttributes?: Record<string, any>): Promise<string>;
5959
}
6060

6161
// @public (undocumented)

src/client/eppo-client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ export default class EppoClient implements IEppoClient {
3838

3939
constructor(private configurationStore: IConfigurationStore) {}
4040

41-
async getAssignment(subjectKey: string, experimentKey: string, subjectAttributes = {}): string {
41+
async getAssignment(
42+
subjectKey: string,
43+
experimentKey: string,
44+
subjectAttributes = {},
45+
): Promise<string> {
4246
validateNotBlank(subjectKey, 'Invalid argument: subjectKey cannot be blank');
4347
validateNotBlank(experimentKey, 'Invalid argument: experimentKey cannot be blank');
4448

0 commit comments

Comments
 (0)