@@ -85,8 +85,8 @@ var LOW_PRIORITY_TIMEOUT = 10000;
85
85
var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt ;
86
86
87
87
// Tasks are stored on a min heap
88
- var taskQueue = [ ] ;
89
- var timerQueue = [ ] ;
88
+ var taskQueue : Array < Task > = [];
89
+ var timerQueue: Array < Task > = [];
90
90
91
91
// Incrementing id counter. Used to maintain insertion order.
92
92
var taskIdCounter = 1;
@@ -121,7 +121,7 @@ const isInputPending =
121
121
122
122
const continuousOptions = { includeContinuous : enableIsInputPendingContinuous } ;
123
123
124
- function advanceTimers ( currentTime ) {
124
+ function advanceTimers ( currentTime : number ) {
125
125
// Check for tasks that are no longer delayed and add them to the queue.
126
126
let timer = peek ( timerQueue ) ;
127
127
while ( timer !== null ) {
@@ -145,7 +145,7 @@ function advanceTimers(currentTime) {
145
145
}
146
146
}
147
147
148
- function handleTimeout ( currentTime ) {
148
+ function handleTimeout ( currentTime : number ) {
149
149
isHostTimeoutScheduled = false ;
150
150
advanceTimers ( currentTime ) ;
151
151
@@ -162,7 +162,7 @@ function handleTimeout(currentTime) {
162
162
}
163
163
}
164
164
165
- function flushWork ( hasTimeRemaining , initialTime ) {
165
+ function flushWork ( hasTimeRemaining : boolean , initialTime : number ) {
166
166
if ( enableProfiling ) {
167
167
markSchedulerUnsuspended ( initialTime ) ;
168
168
}
@@ -206,7 +206,7 @@ function flushWork(hasTimeRemaining, initialTime) {
206
206
}
207
207
}
208
208
209
- function workLoop ( hasTimeRemaining , initialTime ) {
209
+ function workLoop ( hasTimeRemaining : boolean , initialTime : number ) {
210
210
let currentTime = initialTime ;
211
211
advanceTimers ( currentTime ) ;
212
212
currentTask = peek ( taskQueue ) ;
0 commit comments