Skip to content

Commit 7ca198f

Browse files
committed
Clarify offset/column start value
1 parent cab672c commit 7ca198f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export type ChildProps =
2222

2323
export interface Position {
2424
/**
25-
* Source offset in file.
25+
* Source offset in file. It starts from 0.
2626
*/
2727
offset: number
2828

2929
/**
30-
* Source line in file.
30+
* Source line in file. In contrast to `offset` it starts from 1.
3131
*/
3232
column: number
3333

0 commit comments

Comments
 (0)