I was working on unifying AST type definitions across @babel/parser and @babel/types, and noticed that in many places in @babel/parser variables are typed as N.Node (which is the AST equivalent of any). This PR fixes that.
I plan to eventually open a PR to, when possible, move the type string from finishNode to startNode so that the type can be inferred better.
Fixes #1, Fixes #2
I was working on unifying AST type definitions across
@babel/parser
and@babel/types
, and noticed that in many places in@babel/parser
variables are typed asN.Node
(which is the AST equivalent ofany
). This PR fixes that.I plan to eventually open a PR to, when possible, move the type string from
finishNode
tostartNode
so that the type can be inferred better.