From 1aa7ba602d7f517ddd71dd3fcbc8fb4787c5b9c5 Mon Sep 17 00:00:00 2001 From: Tim Nieradzik Date: Thu, 18 Sep 2014 18:03:49 +0200 Subject: [PATCH] WindowTimers: More concrete signatures for timer-related functions. See also issue #49 --- src/main/scala/org/scalajs/dom/lib.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/org/scalajs/dom/lib.scala b/src/main/scala/org/scalajs/dom/lib.scala index 18635d213..7225ebf27 100644 --- a/src/main/scala/org/scalajs/dom/lib.scala +++ b/src/main/scala/org/scalajs/dom/lib.scala @@ -339,7 +339,7 @@ trait WindowTimers extends WindowTimersExtension { * * MDN */ - def setTimeout(handler: js.Any, timeout: js.Any, args: js.Any*): Int = ??? + def setTimeout(handler: js.Function0[Any], timeout: Int): Int = ??? /** * Cancels repeated action which was set up using setInterval. @@ -354,7 +354,7 @@ trait WindowTimers extends WindowTimersExtension { * * MDN */ - def setInterval(handler: js.Any, timeout: js.Any, args: js.Any*): Int = ??? + def setInterval(handler: js.Function0[Any], timeout: Int): Int = ??? } /** @@ -6036,7 +6036,7 @@ trait AudioTrackList extends EventTarget with DOMList[AudioTrack] { trait WindowTimersExtension extends js.Object { def clearImmediate(handle: Int): Unit = ??? - def setImmediate(expression: js.Any, args: js.Any*): Int = ??? + def setImmediate(handler: js.Function0[Any]): Int = ??? } /**