Skip to content

Commit fb9be85

Browse files
committed
Regenerate NAPI parser types
1 parent 010c67e commit fb9be85

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

napi/parser/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,14 @@ export interface ParserOptions {
189189
* The type of the file is determined from `lang` option, or extension of provided `filename`.
190190
*/
191191
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
192200
/**
193201
* Emit `ParenthesizedExpression` and `TSParenthesizedType` in AST.
194202
*

0 commit comments

Comments
 (0)