Skip to content

Commit 911a44d

Browse files
committed
Export IAssignmentEvent properly
1 parent 93e84f2 commit 911a44d

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

js-client-sdk-common.api.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,18 @@ export class HttpClient {
4646
get<T>(resource: string): Promise<T>;
4747
}
4848

49+
// @public
50+
export interface IAssignmentEvent {
51+
experiment: string;
52+
subject: string;
53+
// (undocumented)
54+
subjectAttributes: Record<string, any>;
55+
timestamp: string;
56+
variation: string;
57+
}
58+
4959
// @public
5060
export interface IAssignmentLogger {
51-
// Warning: (ae-forgotten-export) The symbol "IAssignmentEvent" needs to be exported by the entry point index.d.ts
5261
logAssignment(assignment: IAssignmentEvent): void;
5362
}
5463

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eppo/js-client-sdk-common",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)",
55
"main": "dist/index.js",
66
"files": [

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IAssignmentLogger } from './assignment-logger';
1+
import { IAssignmentLogger, IAssignmentEvent } from './assignment-logger';
22
import EppoClient, { IEppoClient } from './client/eppo-client';
33
import { IConfigurationStore } from './configuration-store';
44
import * as constants from './constants';
@@ -8,6 +8,7 @@ import * as validation from './validation';
88

99
export {
1010
IAssignmentLogger,
11+
IAssignmentEvent,
1112
EppoClient,
1213
IEppoClient,
1314
constants,

0 commit comments

Comments
 (0)