dsherret / dsherret/ts-morph

`remove()` method missing from `SyntaxKind.SpreadElement`

Open
#1,389 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

**Describe the bug**

Version: 17.0.1

`remove()` method is missing from `SyntaxKind.SpreadElement`

**To Reproduce**

```ts
if (node.isKind(SyntaxKind.SpreadElement)) {
node.remove();
// Property 'remove' does not exist on type 'SpreadElement'.ts(2339)
}
```

**Expected behavior**

`SyntaxKind.SpreadElement` should have a `remove()` method.

Contributor guide

Open the contributing guide

Research direction

Read CONTRIBUTING.md, then locate the TypeScript definition or wrapper for SyntaxKind.SpreadElement and compare how related syntax kinds expose remove(). Done when the provided example type-checks with node.remove() available and the project’s existing checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.