File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable no-restricted-globals */
1
2
import { ComponentInternalInstance , formatComponentName } from './component'
2
3
import { devtoolsPerfEnd , devtoolsPerfStart } from './devtools'
3
4
4
5
let supported : boolean
5
- let perf : any
6
+ let perf : Performance
6
7
7
8
export function startMeasure (
8
9
instance : ComponentInternalInstance ,
@@ -40,13 +41,11 @@ function isSupported() {
40
41
if ( supported !== undefined ) {
41
42
return supported
42
43
}
43
- /* eslint-disable no-restricted-globals */
44
44
if ( typeof window !== 'undefined' && window . performance ) {
45
45
supported = true
46
46
perf = window . performance
47
47
} else {
48
48
supported = false
49
49
}
50
- /* eslint-enable no-restricted-globals */
51
50
return supported
52
51
}
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ function nextSibling(node: TestNode): TestNode | null {
224
224
return parent . children [ i + 1 ] || null
225
225
}
226
226
227
- function querySelector ( ) : any {
227
+ function querySelector ( ) : never {
228
228
throw new Error ( 'querySelector not supported in test renderer.' )
229
229
}
230
230
You can’t perform that action at this time.
0 commit comments