File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
packages/pluggableWidgets/events-web/src/hooks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ interface UseOnLoadTimerProps {
1111} 
1212
1313class  TimerExecutor  { 
14-     private  intervalHandle : number  |  undefined ; 
14+     private  intervalHandle : ReturnType < typeof   setTimeout >  |  undefined ; 
1515    private  isFirstTime : boolean  =  true ; 
1616    private  isPendingExecution : boolean  =  false ; 
1717    private  canExecute : boolean  =  false ; 
@@ -53,7 +53,7 @@ class TimerExecutor {
5353        } 
5454
5555        // schedule a timer 
56-         this . intervalHandle  =  window . setTimeout ( 
56+         this . intervalHandle  =  setTimeout ( 
5757            ( )  =>  { 
5858                this . isPendingExecution  =  true ; 
5959                this . trigger ( ) ; 
@@ -72,7 +72,7 @@ class TimerExecutor {
7272    } 
7373
7474    stop ( ) : void { 
75-         window . clearTimeout ( this . intervalHandle ) ; 
75+         clearTimeout ( this . intervalHandle ) ; 
7676        this . intervalHandle  =  undefined ; 
7777        this . delay  =  undefined ; 
7878        this . interval  =  undefined ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments