---
url: 'https://adk.nht.io/api/@nhtio/adk/lib/patch/interfaces/AddOperation.md'
description: '`*** Add File:` — create a new file from `+` lines.'
---

# Interface: AddOperation

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

`*** Add File:` — create a new file from `+` lines.

## Properties

| Property                                | Type     | Description                                    | Defined in                                                                                                  |
| --------------------------------------- | -------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|  `added`     | `number` | How many lines the new file contributes.       | [src/lib/patch/index.ts:40](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L40) |
|  `content` | `string` | The new file's content.                        | [src/lib/patch/index.ts:38](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L38) |
|  `path`       | `string` | Workspace-relative path of the file to create. | [src/lib/patch/index.ts:36](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L36) |
|  `type`       | `"add"`  | Discriminant for an add operation.             | [src/lib/patch/index.ts:34](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/lib/patch/index.ts#L34) |
