Skip to content

Commit 2578557

Browse files
Alfred-Skybluesxzz
authored andcommitted
chore(types): remove unnecessary @ts-ignore
1 parent e7d5a41 commit 2578557

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

packages/runtime-core/__tests__/apiInject.spec.ts

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

packages/vue-compat/__tests__/global.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
366366
test('defineReactive', () => {
367367
toggleDeprecationWarning(true)
368368
const obj: any = {}
369-
// @ts-ignore
370369
Vue.util.defineReactive(obj, 'test', 1)
371370

372371
let n
@@ -385,7 +384,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
385384
test('defineReactive on instance', async () => {
386385
const vm = new Vue({
387386
beforeCreate() {
388-
// @ts-ignore
389387
Vue.util.defineReactive(this, 'foo', 1)
390388
},
391389
template: `<div>{{ foo }}</div>`
@@ -400,7 +398,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
400398
test('defineReactive on instance with key that starts with $', async () => {
401399
const vm = new Vue({
402400
beforeCreate() {
403-
// @ts-ignore
404401
Vue.util.defineReactive(this, '$foo', 1)
405402
},
406403
template: `<div>{{ $foo }}</div>`
@@ -414,7 +411,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
414411
test('defineReactive with object value', () => {
415412
const obj: any = {}
416413
const val = { a: 1 }
417-
// @ts-ignore
418414
Vue.util.defineReactive(obj, 'foo', val)
419415

420416
let n
@@ -430,7 +426,6 @@ describe('GLOBAL_PRIVATE_UTIL', () => {
430426
test('defineReactive with array value', () => {
431427
const obj: any = {}
432428
const val = [1]
433-
// @ts-ignore
434429
Vue.util.defineReactive(obj, 'foo', val)
435430

436431
let n

rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ function createConfig(format, output, plugins = []) {
162162

163163
if (!isBundlerESMBuild) {
164164
// hard coded dev/prod builds
165-
// @ts-ignore
166165
replacements.__DEV__ = String(!isProductionBuild)
167166
}
168167

0 commit comments

Comments
 (0)