Skip to content

Commit 505819c

Browse files
author
hdx
committed
feat(performance): 移除一些不必要的TS注释忽略
1 parent 3b9df99 commit 505819c

File tree

1 file changed

+0
-3
lines changed
  • packages/uni-app-plus/src/x/api/performance

1 file changed

+0
-3
lines changed

packages/uni-app-plus/src/x/api/performance/index.ts

-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ class PerformanceEntryStatusLayout extends PerformanceEntryStatus {
120120

121121
const innerPage = super.getCurrentInnerPage()
122122
if (innerPage != null) {
123-
// @ts-expect-error
124123
this._entryData.duration = innerPage.getFirstPageLayoutDuration()
125124
}
126125
}
@@ -143,7 +142,6 @@ class PerformanceEntryStatusRender extends PerformanceEntryStatus {
143142

144143
const innerPage = super.getCurrentInnerPage()
145144
if (innerPage != null) {
146-
// @ts-expect-error
147145
this._entryData.duration = innerPage.getFirstPageRenderDuration()
148146
}
149147
}
@@ -167,7 +165,6 @@ class PerformanceEntryStatusNavigation extends PerformanceEntryStatus {
167165
if (innerPage != null) {
168166
this._entryData.duration = Date.now() - this._entryData.startTime
169167
if (this._entryData.name == APP_LAUNCH) {
170-
// @ts-expect-error
171168
this._entryData.duration += getNativeApp().getAppStartDuration()
172169
}
173170
}

0 commit comments

Comments
 (0)