Skip to content

Commit e47db45

Browse files
mjc1283yavorona
andauthored
fix(TS type defs): Restore missing types (#594)
Summary: UserProfileService and several other types were removed by mistake from lib/index.d.ts. Test plan: Manual testing Issues: #593 Co-authored-by: Polina Nguen <[email protected]>
1 parent 3412e51 commit e47db45

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/optimizely-sdk/lib/index.d.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ declare module '@optimizely/optimizely-sdk' {
3535

3636
export type OptimizelyConfig = import('./shared_types').OptimizelyConfig;
3737

38+
export type OptimizelyVariable = import('./shared_types').OptimizelyVariable;
39+
40+
export type OptimizelyVariation = import('./shared_types').OptimizelyVariation;
41+
42+
export type OptimizelyExperiment = import('./shared_types').OptimizelyExperiment;
43+
44+
export type OptimizelyFeature = import('./shared_types').OptimizelyFeature;
45+
3846
export type EventTags = import ('./shared_types').EventTags;
3947

4048
export type Event = import ('./shared_types').Event;
@@ -43,6 +51,10 @@ declare module '@optimizely/optimizely-sdk' {
4351

4452
export type DatafileOptions = import ('./shared_types').DatafileOptions;
4553

54+
export type UserProfileService = import('./shared_types').UserProfileService;
55+
56+
export type UserProfile = import('./shared_types').UserProfile;
57+
4658
// The options object given to Optimizely.createInstance.
4759
export interface Config {
4860
// TODO[OASIS-6649]: Don't use object type
@@ -61,7 +73,7 @@ declare module '@optimizely/optimizely-sdk' {
6173
// TODO[OASIS-6649]: Don't use object type
6274
// eslint-disable-next-line @typescript-eslint/ban-types
6375
jsonSchemaValidator?: object;
64-
userProfileService?: import('./shared_types').UserProfileService | null;
76+
userProfileService?: UserProfileService | null;
6577
eventBatchSize?: number;
6678
eventFlushInterval?: number;
6779
sdkKey?: string;

0 commit comments

Comments
 (0)