Skip to content

Commit 92e04a6

Browse files
authored
chore: type improvements (#5264)
1 parent 9f55e6f commit 92e04a6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/runtime-core/src/profiling.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
/* eslint-disable no-restricted-globals */
12
import { ComponentInternalInstance, formatComponentName } from './component'
23
import { devtoolsPerfEnd, devtoolsPerfStart } from './devtools'
34

45
let supported: boolean
5-
let perf: any
6+
let perf: Performance
67

78
export function startMeasure(
89
instance: ComponentInternalInstance,
@@ -40,13 +41,11 @@ function isSupported() {
4041
if (supported !== undefined) {
4142
return supported
4243
}
43-
/* eslint-disable no-restricted-globals */
4444
if (typeof window !== 'undefined' && window.performance) {
4545
supported = true
4646
perf = window.performance
4747
} else {
4848
supported = false
4949
}
50-
/* eslint-enable no-restricted-globals */
5150
return supported
5251
}

packages/runtime-test/src/nodeOps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function nextSibling(node: TestNode): TestNode | null {
224224
return parent.children[i + 1] || null
225225
}
226226

227-
function querySelector(): any {
227+
function querySelector(): never {
228228
throw new Error('querySelector not supported in test renderer.')
229229
}
230230

0 commit comments

Comments
 (0)