@pierre/diffs
Version:
14 lines (13 loc) • 619 B
TypeScript
import { FileContents, FileDiffMetadata } from "../types.js";
import { CreatePatchOptionsNonabortable } from "diff";
//#region src/utils/parseDiffFromFile.d.ts
/**
* Parses a diff from two file contents objects.
*
* If both `oldFile` and `newFile` have a `cacheKey`, the resulting diff gets a
* collision-safe key derived from both values.
*/
declare function parseDiffFromFile(oldFile: FileContents | null, newFile: FileContents | null, options?: CreatePatchOptionsNonabortable, throwOnError?: boolean): FileDiffMetadata;
//#endregion
export { parseDiffFromFile };
//# sourceMappingURL=parseDiffFromFile.d.ts.map