@baseplate-dev/sync
Version:
Library for syncing Baseplate descriptions
13 lines • 567 B
TypeScript
import type { StringMergeResult } from './types.js';
/**
* This algorithm just does a simple 2-way diff between the user's text and the baseplate's text
* and returns the merged text without any base reference.
*
* @param input - Input for the merge algorithm
* @returns Merged text and a boolean indicating if there was a conflict
*/
export declare const simpleDiffAlgorithm: ({ previousWorkingText, currentGeneratedText, }: {
previousWorkingText: string;
currentGeneratedText: string;
}) => StringMergeResult;
//# sourceMappingURL=simple-diff.d.ts.map