Commit graph

2 commits

Author SHA1 Message Date
Andy 4b96edf72f
Treat ... in jsdoc type as creating a synthetic rest parameter -- not as an array type (#19483)
* Treat `...` in jsdoc type as creating a synthetic rest parameter -- not as an array type

* Change type parsing so `...T[]` parses as `...(T[])` and not `(...T)[]`

* Replace the last parameter with ...args, and make access to it potentially undefined

* Code review
2017-11-15 13:04:08 -08:00
Sheetal Nandi dfb0f68807 Adding testcase for function with rest param defined in jsDoc comment
Test case for #7749
2016-04-20 11:48:28 -07:00