We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 010c67e commit fb9be85Copy full SHA for fb9be85
napi/parser/index.d.ts
@@ -189,6 +189,14 @@ export interface ParserOptions {
189
* The type of the file is determined from `lang` option, or extension of provided `filename`.
190
*/
191
astType?: 'js' | 'ts'
192
+ /**
193
+ * Controls whether the `range` property is included on AST nodes.
194
+ * The `range` property is a `[number, number]` which indicates the start/end offsets
195
+ * of the node in the file contents.
196
+ *
197
+ * @default false
198
+ */
199
+ range?: boolean
200
/**
201
* Emit `ParenthesizedExpression` and `TSParenthesizedType` in AST.
202
*
0 commit comments