A single patch operation

interface PatchItem {
    content?: string;
    deleteCount?: number;
    lineNumber: number;
    operation: PatchOperation;
}

Properties

content?: string

Content for insert/replace operations

deleteCount?: number

Number of lines to delete (for delete operations)

lineNumber: number

Line number to operate on (1-based)

operation: PatchOperation

Type of operation