JoshuaKGoldberg / JoshuaKGoldberg/TypeStat
Parameter checking doesn't yet account for rest parameters
Open
status: accepting prs
type comparisons
type: bug
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 47
- Avg merge
- 15h 55m
- Merged PRs (30d)
- 21
Description
Right now it just assumes every parameter is a single (non-rest) parameter. Special handling should be done for last parameters of functions that are rest parameters.
For example, in `linkedList.test.ts` in VS Code, the extra `number` gets added:
```typescript
function assertElements(list: LinkedList, ...elements: E[] | number) {
```
Contributor guide
Assessment
This issue has not been assessed yet.