Type Alias Range

Range: {
    endIndex: number;
    endPosition: Point;
    startIndex: number;
    startPosition: Point;
}

A range of positions in a multi-line text document, specified both in terms of byte offsets and row/column positions.

Type declaration

  • endIndex: number

    The byte offset of the end of the range

  • endPosition: Point

    The row and column where the range ends

  • startIndex: number

    The byte offset of the start of the range

  • startPosition: Point

    The row and column where the range starts