Skip to content

Commit 8755448

Browse files
author
Orta Therox
authored
Merge pull request #2214 from peashutop/patch-1
Clarify property renaming example
2 parents 22aa8c1 + 1408e66 commit 8755448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/documentation/copy/en/reference/Variable Declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ Confusingly, the colon here does _not_ indicate the type.
592592
The type, if you specify it, still needs to be written after the entire destructuring:
593593

594594
```ts
595-
let { a, b }: { a: string; b: number } = o;
595+
let { a: newName1, b: newName2 }: { a: string; b: number } = o;
596596
```
597597

598598
### Default values

0 commit comments

Comments
 (0)