dsherret / dsherret/ts-morph

BindingElementNode - Support renaming to an identifier when name is a BindingName

Open
#389 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.