docs(object): fixed #58

This commit is contained in:
ruanyf
2023-08-19 08:10:21 +08:00
parent 0f7f99d27e
commit 6bea4615cd

View File

@@ -504,11 +504,11 @@ function draw({
只要对象 B 满足 对象 A 的结构特征TypeScript 就认为对象 B 兼容对象 A 的类型这称为“结构类型”原则structural typing
```typescript
const A = {
type A = {
x: number;
};
const B = {
type B = {
x: number;
y: number;
};