Skip to content

Commit

Permalink
linedelimiters no longer exists on patch objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-ka committed Oct 8, 2024
1 parent 63252ed commit 7682c3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/diff/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export interface PatchOptions extends LinesOptions {
}

export interface ApplyPatchOptions {
/**
* If `true`, and if the file to be patched consistently uses different line endings to the patch (i.e. either the file always uses Unix line endings while the patch uses Windows ones, or vice versa), then `applyPatch` will behave as if the line endings in the patch were the same as those in the source file. (If `false`, the patch will usually fail to apply in such circumstances since lines deleted in the patch won't be considered to match those in the source file.) Defaults to `true`.
*/
autoConvertLineEndings?: boolean | undefined;

/**
* Number of lines that are allowed to differ before rejecting a patch.
* @default 0
Expand Down Expand Up @@ -145,8 +150,6 @@ export interface Hunk {
newStart: number;
newLines: number;
lines: string[];
// Line Delimiters is only returned by parsePatch()
linedelimiters?: string[];
}

export interface BestPath {
Expand Down

0 comments on commit 7682c3b

Please sign in to comment.