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

---
```ts
$discriminator(
   context, 
   entity, 
   propertyName): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | [`DecoratorContext`](../interfaces/DecoratorContext.md) |
| `entity` | [`Model`](../interfaces/Model.md) \| [`Union`](../interfaces/Union.md) |
| `propertyName` | `string` |

## Returns

`void`
