---
url: 'https://adk.nht.io/api/@nhtio/adk/lib/patch/functions/parseStructuredPatch.md'
---

# Function: parseStructuredPatch()

```ts
function parseStructuredPatch(patch: string): ParsedApplyPatch;
```

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

Parse a structured `*** Begin Patch` envelope.

## Parameters

| Parameter | Type     | Description         |
| --------- | -------- | ------------------- |
| `patch`   | `string` | The raw patch text. |

## Returns

[`ParsedApplyPatch`](../interfaces/ParsedApplyPatch.md)

The parsed operations.
