Skip to content

Commit 8ceb2e5

Browse files
committed
fix: dts type
1 parent 619e53b commit 8ceb2e5

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Diff for: packages/runtime-core/__tests__/apiInject.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ describe('api: provide/inject', () => {
111111
},
112112
},
113113
render() {
114-
// @ts-expect-error
115114
return this.foo
116115
},
117116
})

Diff for: packages/vue-compat/__tests__/global.spec.ts

-5
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
365365
test('defineReactive', () => {
366366
toggleDeprecationWarning(true)
367367
const obj: any = {}
368-
// @ts-expect-error
369368
Vue.util.defineReactive(obj, 'test', 1)
370369

371370
let n
@@ -384,7 +383,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
384383
test('defineReactive on instance', async () => {
385384
const vm = new Vue({
386385
beforeCreate() {
387-
// @ts-expect-error
388386
Vue.util.defineReactive(this, 'foo', 1)
389387
},
390388
template: `<div>{{ foo }}</div>`,
@@ -399,7 +397,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
399397
test('defineReactive on instance with key that starts with $', async () => {
400398
const vm = new Vue({
401399
beforeCreate() {
402-
// @ts-expect-error
403400
Vue.util.defineReactive(this, '$foo', 1)
404401
},
405402
template: `<div>{{ $foo }}</div>`,
@@ -413,7 +410,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
413410
test('defineReactive with object value', () => {
414411
const obj: any = {}
415412
const val = { a: 1 }
416-
// @ts-expect-error
417413
Vue.util.defineReactive(obj, 'foo', val)
418414

419415
let n
@@ -429,7 +425,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
429425
test('defineReactive with array value', () => {
430426
const obj: any = {}
431427
const val = [1]
432-
// @ts-expect-error
433428
Vue.util.defineReactive(obj, 'foo', val)
434429

435430
let n

0 commit comments

Comments
 (0)