Skip to content

Commit f9cc5e1

Browse files
committed
对象成员的逗号补全
1 parent 4bb3370 commit f9cc5e1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

zh/release-notes/typescript-5.2.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,3 +742,13 @@ export function f(param) {
742742
```
743743

744744
更多详情请查看 [PR](https://github.com/microsoft/TypeScript/pull/54746)
745+
746+
## 对象成员的逗号补全
747+
748+
在给对象添加新属性时很容易忘记添加逗号。
749+
在之前,如果你忘了写逗号并且请求自动补全,TypeScript 会给出差的不相关的补全结果。
750+
751+
TypeScript 5.2 现在在您缺少逗号时会优雅地提供对象成员的自动补全。
752+
但为了避免语法错误的出现,它还会自动插入缺失的逗号。
753+
754+
更多详情请查看 [PR](https://github.com/microsoft/TypeScript/pull/52899)

0 commit comments

Comments
 (0)