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

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

## Parameters

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

## Returns

[[`Model`](Interface.Model.md) \| [`Union`](Interface.Union.md), [`Discriminator`](Namespace.decorators.Interface.Discriminator.md)][]
