Type Alias Edit

Edit: {
    newEndIndex: number;
    newEndPosition: Point;
    oldEndIndex: number;
    oldEndPosition: Point;
    startIndex: number;
    startPosition: Point;
}

A summary of a change to a text document

Type declaration

  • newEndIndex: number

    The byte offset where the edit ends in the new document

  • newEndPosition: Point

    The row and column where the edit ends in the new document

  • oldEndIndex: number

    The byte offset where the edit ends in the old document

  • oldEndPosition: Point

    The row and column where the edit ends in the old document

  • startIndex: number

    The byte offset where the edit starts

  • startPosition: Point

    The row and column where the edit starts