Skip to content
1 min read · 117 words

Interface: ParsedHunk ​

Defined in: src/lib/patch/index.ts:20

One parsed @@ hunk: the context+removal lines and their replacement.

Properties ​

PropertyTypeDescriptionDefined in
addednumberHow many lines the hunk adds.src/lib/patch/index.ts:26
newLinesstring[]The lines the hunk writes in their place, in order (context + additions).src/lib/patch/index.ts:24
oldLinesstring[]The lines the hunk expects to find in the source, in order (context + removals).src/lib/patch/index.ts:22
removednumberHow many lines the hunk removes.src/lib/patch/index.ts:28