Retsam 2194842d11 Typescript: Validate tuple type element positions (#8828)
* feat: validate the positions of rest elements and optional elements in tuple types

Adds a validation step to the parser which raises syntax errors if a rest param is not at the end of a tuple, or if a mandatory param follows an optional parameter

* Fix spread after optional case; add test case
2018-11-05 23:19:34 -08:00
..
2018-09-24 18:09:54 -05:00
2018-09-24 18:09:54 -05:00
2018-09-24 18:09:54 -05:00