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._
15
15
*/
16
16
@ js.native
17
17
@ JSGlobal
18
- class Performance extends js.Object {
18
+ class Performance private [ this ]() extends js.Object {
19
19
20
20
/** The Performance.navigation read-only property returns a PerformanceNavigation object representing the type of
21
21
* 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 {
28
28
*/
29
29
def timing : PerformanceTiming = js.native
30
30
31
- def getEntriesByType (entryType : String ): js.Dynamic = js.native
31
+ def getEntriesByType (entryType : String ): js.Array [ PerformanceEntry ] = js.native
32
32
33
33
/** Is a jsonizer returning a json object representing the Performance object. */
34
34
def toJSON (): js.Dynamic = js.native
@@ -45,9 +45,9 @@ class Performance extends js.Object {
45
45
46
46
def measure (measureName : String , startMarkName : String = js.native, endMarkName : String = js.native): Unit = js.native
47
47
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
49
49
50
- def getEntries (): js.Dynamic = js.native
50
+ def getEntries (): js.Array [ PerformanceEntry ] = js.native
51
51
52
52
def clearMeasures (measureName : String = js.native): Unit = js.native
53
53
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class PerformanceEntry extends js.Object {
16
16
17
17
def startTime : Double = js.native
18
18
19
- def duration : Int = js.native
19
+ def duration : Double = js.native
20
20
21
21
def entryType : String = js.native
22
22
}
You can’t perform that action at this time.
0 commit comments