Skip to content

Commit

Permalink
docs: fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Dec 16, 2023
1 parent d21f77e commit ef7d619
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/comment.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function doStuff(abc: string, xyz: string) {
// do some stuff
}

// @ts-expect-error
expect(() => {
// @ts-expect-error
doStuff(123, 456);
}).toThrow();
```
Expand Down
2 changes: 1 addition & 1 deletion docs/tsconfig.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ TypeScript 内置的类型描述文件,主要有以下一些,完整的清单
- strictPropertyInitialization
- noImplicitAny
- noImplicitThis
- useUnknownInCatchVaria
- useUnknownInCatchVariables

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

Expand Down
2 changes: 1 addition & 1 deletion docs/utility.md
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ type ReturnType<
`ThisParameterType<Type>`提取函数类型中`this`参数的类型。

```typescript
function toHex(this: Number) {
function toHex(this:number) {
return this.toString(16);
}

Expand Down

0 comments on commit ef7d619

Please sign in to comment.