File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/optimizely-sdk/lib/optimizely Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ const DEFAULT_ONREADY_TIMEOUT = 30000;
60
60
export default class Optimizely {
61
61
private __isOptimizelyConfigValid : boolean ;
62
62
private __disposeOnUpdate : ( ( ) => void ) | null ;
63
- private __readyPromise : Promise < { success : boolean ; reason ?: string } > ; //TODO
64
- private __readyTimeouts : any ; //TODO
65
- private __nextReadyTimeoutId : any ; //TODO
63
+ private __readyPromise : Promise < { success : boolean ; reason ?: string } > ;
64
+ private __readyTimeouts : { [ key : string ] : { readyTimeout : number ; onClose : ( ) => void } } ;
65
+ private __nextReadyTimeoutId : number ;
66
66
private clientEngine : string ;
67
67
private clientVersion : string ;
68
68
private errorHandler : ErrorHandler ;
@@ -1309,10 +1309,8 @@ export default class Optimizely {
1309
1309
timeoutValue = DEFAULT_ONREADY_TIMEOUT ;
1310
1310
}
1311
1311
1312
- type Resolve = ( value ?: unknown ) => void ;
1313
-
1314
- let resolveTimeoutPromise : any ;
1315
- const timeoutPromise = new Promise ( function ( resolve : Resolve ) {
1312
+ let resolveTimeoutPromise : ( value ?: unknown ) => void ;
1313
+ const timeoutPromise = new Promise ( function ( resolve : ( value ?: unknown ) => void ) {
1316
1314
resolveTimeoutPromise = resolve ;
1317
1315
} ) ;
1318
1316
You can’t perform that action at this time.
0 commit comments