# ref

```ts
import { ref } from "@alloy-js/typescript";


function ref(refkey: Refkey, options?: RefOptions): () => [Children, TSOutputSymbol | undefined];
```

## Parameters

|         |                     |   |
| ------- | ------------------- | - |
| refkey  | Refkey              |   |
| options | optional RefOptions |   |

## Options

|      |                  |   |
| ---- | ---------------- | - |
| type | optional boolean |   |

## Returns

() => \[[Children](../../../core/types/children/), [TSOutputSymbol](../../types/tsoutputsymbol/) | undefined]
