chore(types): delete @ts-ignore or use @ts-expected-error instead (#3669)

Co-authored-by: heyunfei.i <heyunfei.i@bytedance.com>
This commit is contained in:
HeYunfei
2022-05-12 08:40:59 +08:00
committed by GitHub
parent cd395559ce
commit b5b103a736
8 changed files with 29 additions and 34 deletions

View File

@@ -8,7 +8,7 @@ describe('reactivity/shallowReadonly', () => {
test('should make root level properties readonly', () => {
const props = shallowReadonly({ n: 1 })
// @ts-ignore
// @ts-expect-error
props.n = 2
expect(props.n).toBe(1)
expect(
@@ -19,7 +19,7 @@ describe('reactivity/shallowReadonly', () => {
// to retain 2.x behavior.
test('should NOT make nested properties readonly', () => {
const props = shallowReadonly({ n: { foo: 1 } })
// @ts-ignore
props.n.foo = 2
expect(props.n.foo).toBe(2)
expect(