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

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

## Parameters

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

## Returns

`void`
