---
jsApi: true
title: "[F] defineCodeFix"

---
```ts
defineCodeFix(fix): CodeFix
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `fix` | [`CodeFix`](../interfaces/CodeFix.md) |

## Returns

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