---
jsApi: true
title: "[F] $onValidate"

---
```ts
$onValidate(program): Promise< void >
```

Validation function

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |

## Returns

`Promise`< `void` \>
