BindingElementNode - Support renaming to an identifier when name is a BindingName
Open
enhancement
priority: minor
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 238
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
For example:
```ts
const { a, b: c } = { a: 1, b: 2 };
console.log(a);
console.log(c);
```
Renaming to `d` would do the following:
```ts
const d = { a: 1, b: 2 };
console.log(d.a);
console.log(d.b);
```
Same with `ArrayBindingPattern`.
Contributor guide
Assessment
This issue has not been assessed yet.