@@ -85,8 +85,8 @@ var LOW_PRIORITY_TIMEOUT = 10000;
8585var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt ;
8686
8787// Tasks are stored on a min heap
88- var taskQueue = [ ] ;
89- var timerQueue = [ ] ;
88+ var taskQueue : Array < Task > = [];
89+ var timerQueue: Array < Task > = [];
9090
9191// Incrementing id counter. Used to maintain insertion order.
9292var taskIdCounter = 1;
@@ -121,7 +121,7 @@ const isInputPending =
121121
122122const continuousOptions = { includeContinuous : enableIsInputPendingContinuous } ;
123123
124- function advanceTimers ( currentTime ) {
124+ function advanceTimers ( currentTime : number ) {
125125 // Check for tasks that are no longer delayed and add them to the queue.
126126 let timer = peek ( timerQueue ) ;
127127 while ( timer !== null ) {
@@ -145,7 +145,7 @@ function advanceTimers(currentTime) {
145145 }
146146}
147147
148- function handleTimeout ( currentTime ) {
148+ function handleTimeout ( currentTime : number ) {
149149 isHostTimeoutScheduled = false ;
150150 advanceTimers ( currentTime ) ;
151151
@@ -162,7 +162,7 @@ function handleTimeout(currentTime) {
162162 }
163163}
164164
165- function flushWork ( hasTimeRemaining , initialTime ) {
165+ function flushWork ( hasTimeRemaining : boolean , initialTime : number ) {
166166 if ( enableProfiling ) {
167167 markSchedulerUnsuspended ( initialTime ) ;
168168 }
@@ -206,7 +206,7 @@ function flushWork(hasTimeRemaining, initialTime) {
206206 }
207207}
208208
209- function workLoop ( hasTimeRemaining , initialTime ) {
209+ function workLoop ( hasTimeRemaining : boolean , initialTime : number ) {
210210 let currentTime = initialTime ;
211211 advanceTimers ( currentTime ) ;
212212 currentTask = peek ( taskQueue ) ;
0 commit comments