benjamn / ast-types

Esprima-compatible implementation of the Mozilla JS Parser API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add 'Range' property to base Printable definition?

marlon-tucker opened this issue · comments

Hello,

Judging from the node extension ability with builders, this looks like it should be possible, but after about an hour of fiddling, the property doesn't show in my typescript type checking.

Any chance of a quick example as to how one would achieve this?

Esprima attaches a Range property (which is an array of numbers) to each node if the user requests it.

Thanks

Marlon