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}`);}});
Type of change
File path affected
Optional
Old value (for updates)
New value (for updates)
Line number where change occurred
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