Skip to content

Commit a9bcfd7

Browse files
committed
WindowTimers timeout types from Int to Double
1 parent 5b6d315 commit a9bcfd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ trait WindowTimers extends WindowTimersExtension {
443443
*
444444
* MDN
445445
*/
446-
def setTimeout(handler: js.Function0[Any], timeout: Int): Int = js.native
446+
def setTimeout(handler: js.Function0[Any], timeout: Double): Int = js.native
447447

448448
/**
449449
* Cancels repeated action which was set up using setInterval.
@@ -458,7 +458,7 @@ trait WindowTimers extends WindowTimersExtension {
458458
*
459459
* MDN
460460
*/
461-
def setInterval(handler: js.Function0[Any], timeout: Int): Int = js.native
461+
def setInterval(handler: js.Function0[Any], timeout: Double): Int = js.native
462462
}
463463

464464
/**

0 commit comments

Comments
 (0)