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

Skip to content

Commit c4cff00

Browse files
authored
Merge pull request xcatliu#39 from Creabine/patch-1
Update type-of-object-interfaces.md
2 parents aa8e30a + 8f87142 commit c4cff00

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)