---
title: "bindingRef(): IR builder function in typeshade/core/ir"
description: "bindingRef, an IR builder function in typeshade/core/ir. A module-level binding reference."
url: https://typeshade.dev/api/bindingref/
language: en
---

# `bindingRef()`

Function in Values

A module-level binding reference.

`import { bindingRef } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
function bindingRef<T extends ShaderType>(name: string, type: T): Node<KeyOf<T>>
```

## Parameters

**`name` `string`**

**`type` `T extends ShaderType`**

## Return value

`Node<KeyOf<T>>`

## Source

[`src/core/ir/node.ts`, line 920](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L920), at commit af54ddad5
