Skip to content

Commit c1662ec

Browse files
committed
Merge pull request scala-js#138 from mseddon/fix-timerange-type
Fix scala-js#137: TimeRanges start/end type incorrect
2 parents 90c845a + 9028a14 commit c1662ec

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
@@ -5078,14 +5078,14 @@ class TimeRanges extends js.Object {
50785078
*
50795079
* MDN
50805080
*/
5081-
def start(index: Int): Int = js.native
5081+
def start(index: Int): Double = js.native
50825082

50835083
/**
50845084
* Returns the time offset at which a specified time range ends.
50855085
*
50865086
* MDN
50875087
*/
5088-
def end(index: Int): Int = js.native
5088+
def end(index: Int): Double = js.native
50895089
}
50905090

50915091

0 commit comments

Comments
 (0)