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

---
```ts
getMadeOptionalOn(p, t): Version | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `p` | `Program` |
| `t` | `Type` |

## Returns

[`Version`](../interfaces/Version.md) \| `undefined`

version when the given type was made optional if applicable.
