Represents a specific change made during an operation.
Provides detailed information about individual modifications including the type of change, location, and before/after values.
Analyzing operation changes
const changes: OperationChange[] = result.changes;changes.forEach(change => { console.log(`${change.type} in ${change.filePath}`); if (change.line) { console.log(` Line ${change.line}: ${change.oldValue} → ${change.newValue}`); }}); Copy
const changes: OperationChange[] = result.changes;changes.forEach(change => { console.log(`${change.type} in ${change.filePath}`); if (change.line) { console.log(` Line ${change.line}: ${change.oldValue} → ${change.newValue}`); }});
File path affected
Optional
Line number where change occurred
New value (for updates)
Old value (for updates)
Type of change
Represents a specific change made during an operation.
Provides detailed information about individual modifications including the type of change, location, and before/after values.
Example
Analyzing operation changes