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

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

## Parameters

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

## Returns

[`Version`](Interface.Version.md) \| `undefined`

version when the given type was made optional if applicable.
