---
url: 'https://adk.nht.io/api/@nhtio/adk/lib/patch/interfaces/ParsedHunk.md'
description: 'One parsed `@@` hunk: the context+removal lines and their replacement.'
---

# Interface: ParsedHunk

Defined in: [src/lib/patch/index.ts:20](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L20)

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

## Properties

| Property                                  | Type       | Description                                                                      | Defined in                                                                                                  |
| ----------------------------------------- | ---------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|  `added`       | `number`   | How many lines the hunk adds.                                                    | [src/lib/patch/index.ts:26](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L26) |
|  `newLines` | `string`\[] | The lines the hunk writes in their place, in order (context + additions).        | [src/lib/patch/index.ts:24](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L24) |
|  `oldLines` | `string`\[] | The lines the hunk expects to find in the source, in order (context + removals). | [src/lib/patch/index.ts:22](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L22) |
|  `removed`   | `number`   | How many lines the hunk removes.                                                 | [src/lib/patch/index.ts:28](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L28) |
