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 2fdbc00

Browse files
committedAug 30, 2023
docs: 订正:笔误、全角分号
1 parent 542bf6b commit 2fdbc00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎docs/mapping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ type MyObj = {
113113

114114
上面示例中,`[p in string]`就是属性名索引形式`[p: string]`的映射写法。
115115

116-
通过映射,可以某个对象的所有属性改成可选属性
116+
通过映射,可以把某个对象的所有属性改成可选属性
117117

118118
```typescript
119119
type A = {
@@ -262,7 +262,7 @@ type B = {
262262
type B = {
263263
fooID: number;
264264
barID: number;
265-
}
265+
};
266266
```
267267

268268
上面示例中,类型`B`是类型`A`的映射,但在映射时把属性名改掉了,在原始属性名后面加上了字符串`ID`

‎docs/utility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ type ThisParameterType<T> =
660660
T extends (
661661
this: infer U,
662662
...args: never
663-
) => any ? U : unknown
663+
) => any ? U : unknown;
664664
```
665665

666666
## `ThisType<Type>`

0 commit comments

Comments
 (0)
Please sign in to comment.