File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ test('my types work properly', () => {
3232 expectTypeOf (mount ).toBeFunction ()
3333 expectTypeOf (mount ).parameter (0 ).toExtend <{ name: string }>()
3434
35- // @ts-expect-error name is a string
35+ // @ts-expect-error 名称为字符串
3636 assertType (mount ({ name: 42 }))
3737})
3838```
@@ -106,7 +106,7 @@ expectTypeOf(one).toEqualTypeOf<typeof two>()
106106const answer = 42
107107
108108assertType <number >(answer )
109- // @ts-expect-error answer is not a string
109+ // @ts-expect-error 答案不是字符串
110110assertType <string >(answer )
111111```
112112
@@ -116,7 +116,7 @@ assertType<string>(answer)
116116这将通过,因为它预计会出现错误,但 “answer” 这个词有错别字,所以这是一个误报错误:
117117
118118``` ts
119- // @ts-expect-error answer is not a string
119+ // @ts-expect-error 答案不是字符串
120120assertType <string >(answr )
121121```
122122
You can’t perform that action at this time.
0 commit comments