* 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
@babel/parser
A JavaScript parser
See our website @babel/parser for more information or the issues associated with this package.
Install
Using npm:
npm install --save-dev @babel/parser
or using yarn:
yarn add @babel/parser --dev