TypeStat icon indicating copy to clipboard operation
TypeStat copied to clipboard

Parameter checking doesn't yet account for rest parameters

Open JoshuaKGoldberg opened this issue 6 years ago • 0 comments

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:

function assertElements<E>(list: LinkedList<E>, ...elements: E[] | number) {

JoshuaKGoldberg avatar Dec 17 '18 23:12 JoshuaKGoldberg