---
jsApi: true
title: "[F] getDiscriminatedTypes"

---
```ts
getDiscriminatedTypes(program): [Model | Union, Discriminator][]
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) |

## Returns

[[`Model`](../interfaces/Model.md) \| [`Union`](../interfaces/Union.md), [`Discriminator`](../interfaces/Discriminator.md)][]
