TypeStat
TypeStat copied to clipboard
Parameter checking doesn't yet account for rest parameters
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) {