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

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

## Parameters

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

## Returns

`void`
