mirror of
https://github.com/wangdoc/typescript-tutorial.git
synced 2025-12-20 00:50:17 +08:00
docs(object): fixed #109
This commit is contained in:
@@ -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; // 报错
|
||||
|
||||
Reference in New Issue
Block a user