File tree 1 file changed +3
-3
lines changed
packages/optimizely-sdk/lib/optimizely
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export default class Optimizely {
143
143
144
144
const projectConfigManagerReadyPromise = this . projectConfigManager . onReady ( ) ;
145
145
146
- let userProfileService = null ;
146
+ let userProfileService : UserProfileService | null = null ;
147
147
if ( config . userProfileService ) {
148
148
try {
149
149
if ( userProfileServiceValidator . validate ( config . userProfileService ) ) {
@@ -328,8 +328,8 @@ export default class Optimizely {
328
328
const experimentKey = decision . getExperimentKey ( decisionObj ) ;
329
329
const variationKey = decision . getVariationKey ( decisionObj ) ;
330
330
331
- let experimentId = null ;
332
- let variationId = null ;
331
+ let experimentId : string | null = null ;
332
+ let variationId : string | null = null ;
333
333
334
334
if ( experimentKey !== '' && variationKey !== '' ) {
335
335
variationId = projectConfig . getVariationIdFromExperimentAndVariationKey ( configObj , experimentKey , variationKey ) ;
You can’t perform that action at this time.
0 commit comments