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

---
```ts
$onEmit(context): Promise<void>
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `EmitContext`<[`JSONSchemaEmitterOptions`](../interfaces/JSONSchemaEmitterOptions.md)\> |

## Returns

`Promise`<`void`\>
