Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef7d619

Browse files
committedDec 16, 2023
docs: fixed typos
1 parent d21f77e commit ef7d619

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎docs/comment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function doStuff(abc: string, xyz: string) {
5555
// do some stuff
5656
}
5757

58-
// @ts-expect-error
5958
expect(() => {
59+
// @ts-expect-error
6060
doStuff(123, 456);
6161
}).toThrow();
6262
```

‎docs/tsconfig.json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ TypeScript 内置的类型描述文件,主要有以下一些,完整的清单
629629
- strictPropertyInitialization
630630
- noImplicitAny
631631
- noImplicitThis
632-
- useUnknownInCatchVaria
632+
- useUnknownInCatchVariables
633633

634634
打开`strict`的时候,允许单独关闭其中一项。
635635

‎docs/utility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ type ReturnType<
644644
`ThisParameterType<Type>`提取函数类型中`this`参数的类型。
645645

646646
```typescript
647-
function toHex(this: Number) {
647+
function toHex(this:number) {
648648
return this.toString(16);
649649
}
650650

0 commit comments

Comments
 (0)
Please sign in to comment.