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

---
```ts
getRef(program, entity): string | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `entity` | `Type` |

## Returns

`string` \| `undefined`
