spread-diff-patch
Version:
Diff & patch SpreadSheet files
38 lines (37 loc) • 921 B
JavaScript
// src/formatter/index.ts
var Formatter = class {
/**
* Creates an instance of Formatter.
* @param {Function} patcher - The patcher function used to generate the patched string.
*/
constructor(patcher = (actual, expected) => {
let patchedString = "";
if (actual)
patchedString += `[-][${actual}]`;
if (actual && expected)
patchedString += " ";
if (expected)
patchedString += `[+][${expected}]`;
return patchedString;
}) {
this.patch = patcher;
}
/**
* Formats the diff array of arrays.
* @param diffAOA - The diff array of arrays to be formatted.
* @returns The formatted string.
*/
format(diffAOA) {
throw new Error("Method not implemented.");
}
};
// src/formatter/json.ts
var JSON = class extends Formatter {
format(diffAOA) {
throw new Error("Method not implemented.");
}
};
export {
JSON
};
//# sourceMappingURL=json.mjs.map