Skip to content

Commit

Permalink
Fix the TypeScript definition of a Range (#64)
Browse files Browse the repository at this point in the history
A Range contains:
- startIndex
- endIndex
- startPosition
- endPosition
  • Loading branch information
thibaultdalban committed May 20, 2020
1 parent ee143c8 commit adebd0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tree-sitter.d.ts
Expand Up @@ -14,8 +14,10 @@ declare module "tree-sitter" {
};

export type Range = {
start: Point;
end: Point;
startIndex: number,
endIndex: number,
startPosition: Point,
endPosition: Point
};

export type Edit = {
Expand Down

0 comments on commit adebd0d

Please sign in to comment.