Represents a text modification

interface Edit {
    content: string;
    length: number;
    offset: number;
}

Properties

Properties

content: string

The new content. Empty content represents a remove.

length: number

The length of the modification. Must not be negative. Empty length represents an insert.

offset: number

The start offset of the modification.