Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f87142

Browse files
authored
Update type-of-object-interfaces.md
原句似乎有歧义,已更改供参考
1 parent 1b5862a commit 8f87142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basics/type-of-object-interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ let tom: Person = {
128128

129129
使用 `[propName: string]` 定义了任意属性取 `string` 类型的值。
130130

131-
需要注意的是,**一旦定义了任意属性,那么确定属性和可选属性都必须是它的子属性**
131+
需要注意的是,**一旦定义了任意属性,那么确定属性和可选属性的类型都必须是它的类型的子集**
132132

133133
```ts
134134
interface Person {

0 commit comments

Comments
 (0)