JamesHenry / typescript-estree

:sparkles: A parser that converts TypeScript source code into an ESTree-compatible form
https://jameshenry.blog
Other
84 stars 13 forks source link

feat: rest element should contain information about type annotation #108

Closed armano2 closed 5 years ago

armano2 commented 5 years ago

This PR changes typeAnnotation location in AST,

after this change typeAnnotation will be correctly assigned to RestElement node.


i think this is a little more logical, type annotation describe ...foo not foo in this case

example:

function foo (...bar: baz[]) {}
armano2 commented 5 years ago

can you merge #110 before this one?

JamesHenry commented 5 years ago

Done 👍

JamesHenry commented 5 years ago

:tada: This PR is included in version 14.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: