markmv - v1.26.2
    Preparing search index...

    Interface OperationChange

    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}`);
    }
    });
    interface OperationChange {
        type:
            | "file-moved"
            | "file-created"
            | "file-deleted"
            | "link-updated"
            | "content-modified";
        filePath: string;
        oldValue?: string;
        newValue?: string;
        line?: number;
    }
    Index

    Properties

    type:
        | "file-moved"
        | "file-created"
        | "file-deleted"
        | "link-updated"
        | "content-modified"

    Type of change

    filePath: string

    File path affected

    oldValue?: string

    Old value (for updates)

    newValue?: string

    New value (for updates)

    line?: number

    Line number where change occurred