Skip to content

Commit

Permalink
Add missing startColumn to ParserOptions type definition (#14453)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abreto committed Apr 11, 2022
1 parent b35ff0f commit df5c1eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/babel-parser/typings/babel-parser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ export interface ParserOptions {
*/
startLine?: number;

/**
* By default, the parsed code is treated as if it starts from line 1, column 0.
* You can provide a column number to alternatively start with.
* Useful for integration with other source tools.
*/
startColumn?: number;

/**
* Array containing the plugins that you want to enable.
*/
Expand Down

0 comments on commit df5c1eb

Please sign in to comment.