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

---
```ts
getReturnTypeBeforeVersion(
  p,
  t,
  versionKey): any
```

## Parameters

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

## Returns

`any`

get old type if applicable.
