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

# Function: inferTextMimeFromPath()

```ts
function inferTextMimeFromPath(path: string): string;
```

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

Infer a text MIME from a workspace path's extension (Add File outputs).

## Parameters

| Parameter | Type     |
| --------- | -------- |
| `path`    | `string` |

## Returns

`string`
