docs(object): fixed #109

This commit is contained in:
ruanyf
2024-06-22 20:12:43 +08:00
parent 73e9fdc014
commit 0666054609

View File

@@ -489,8 +489,7 @@ let { x: foo, y: bar }
```typescript
function draw({
shape: Shape,
xPos: number = 100,
yPos: number = 100
xPos: number = 100
}) {
let myShape = shape; // 报错
let x = xPos; // 报错