---
title: "NODE_BRAND: constant in IR, TypeShade API reference"
description: "NODE_BRAND, a constant in IR. The symbol every node carries as a brand, installed once on the ReadonlyNode prototype."
url: https://typeshade.dev/api/nodebrand/
language: en
---

# `NODE_BRAND`

Constant in IR

The symbol every node carries as a brand, installed once on the ReadonlyNode prototype.

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

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

## Syntax

```ts
const NODE_BRAND: typeof NODE_BRAND
```

## Description

The symbol every node carries as a brand, installed once on the [`ReadonlyNode`](https://typeshade.dev/api/readonlynode/) prototype. It is created with `Symbol.for`, which resolves through the global symbol registry, so when a bundler loads two copies of this package a node built by one copy still carries the brand the other copy checks for. `instanceof Node` gives no such guarantee, because prototype identity differs per copy. [`isNodeValue`](https://typeshade.dev/api/isnodevalue/) reads this slot.

## See also

- [`ReadonlyNode`](https://typeshade.dev/api/readonlynode/)
- [`isNodeValue`](https://typeshade.dev/api/isnodevalue/)

## Source

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