Skip to content

Commit e54015e

Browse files
authored
Refactor: fill in the flow missing type (facebook#25496)
1 parent 3b1fd57 commit e54015e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/scheduler/src/SchedulerProfiling.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const TaskYieldEvent = 6;
3131
const SchedulerSuspendEvent = 7;
3232
const SchedulerResumeEvent = 8;
3333

34-
function logEvent(entries) {
34+
function logEvent(entries: Array<number | PriorityLevel>) {
3535
if (eventLog !== null) {
3636
const offset = eventLogIndex;
3737
eventLogIndex += entries.length;

packages/scheduler/src/forks/Scheduler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ function requestHostCallback(callback) {
637637
}
638638
}
639639

640-
function requestHostTimeout(callback, ms) {
640+
function requestHostTimeout(callback, ms: number) {
641641
// $FlowFixMe[not-a-function] nullable value
642642
taskTimeoutID = localSetTimeout(() => {
643643
callback(getCurrentTime());

packages/scheduler/src/forks/SchedulerMock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function flushWork(hasTimeRemaining: boolean, initialTime: number) {
191191
}
192192
}
193193

194-
function workLoop(hasTimeRemaining, initialTime: number): boolean {
194+
function workLoop(hasTimeRemaining: boolean, initialTime: number): boolean {
195195
let currentTime = initialTime;
196196
advanceTimers(currentTime);
197197
currentTask = peek(taskQueue);

0 commit comments

Comments
 (0)