Browse Source

Replace setTimeout timeout: Int with : Float, fixes #8223

George Corney 6 years ago
parent
commit
c73f811577
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/js/html/Window.hx

+ 2 - 2
std/js/html/Window.hx

@@ -566,8 +566,8 @@ extern class Window extends EventTarget {
 	/** @throws DOMError */
 	function atob( atob : String ) : String;
 	/** @throws DOMError */
-	@:overload( function( handler : haxe.Constraints.Function, timeout : Int = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
-	function setTimeout( handler : String, timeout : Int = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
+	@:overload( function( handler : haxe.Constraints.Function, timeout : Float = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
+	function setTimeout( handler : String, timeout : Float = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
 	function clearTimeout( handle : Int = 0 ) : Void;
 	/** @throws DOMError */
 	@:overload( function( handler : haxe.Constraints.Function, timeout : Int = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )