File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
dom/src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import scala.scalajs.js.annotation._
1515 */
1616@ js.native
1717@ JSGlobal
18- class Performance extends js.Object {
18+ class Performance private [ this ]() extends js.Object {
1919
2020 /** The Performance.navigation read-only property returns a PerformanceNavigation object representing the type of
2121 * navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the
@@ -28,7 +28,7 @@ class Performance extends js.Object {
2828 */
2929 def timing : PerformanceTiming = js.native
3030
31- def getEntriesByType (entryType : String ): js.Dynamic = js.native
31+ def getEntriesByType (entryType : String ): js.Array [ PerformanceEntry ] = js.native
3232
3333 /** Is a jsonizer returning a json object representing the Performance object. */
3434 def toJSON (): js.Dynamic = js.native
@@ -45,9 +45,9 @@ class Performance extends js.Object {
4545
4646 def measure (measureName : String , startMarkName : String = js.native, endMarkName : String = js.native): Unit = js.native
4747
48- def getEntriesByName (name : String , entryType : String = js.native): js.Dynamic = js.native
48+ def getEntriesByName (name : String , entryType : String = js.native): js.Array [ PerformanceEntry ] = js.native
4949
50- def getEntries (): js.Dynamic = js.native
50+ def getEntries (): js.Array [ PerformanceEntry ] = js.native
5151
5252 def clearMeasures (measureName : String = js.native): Unit = js.native
5353
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class PerformanceEntry extends js.Object {
1616
1717 def startTime : Double = js.native
1818
19- def duration : Int = js.native
19+ def duration : Double = js.native
2020
2121 def entryType : String = js.native
2222}
You can’t perform that action at this time.
0 commit comments