---
title: "OverrideInfo: interface in Reflection, TypeShade API"
description: "OverrideInfo, an interface in Reflection. A pipeline specialization constant the host supplies when it creates a pipeline."
url: https://typeshade.dev/api/overrideinfo/
language: en
---

# `OverrideInfo`

Interface in Reflection

A pipeline specialization constant the host supplies when it creates a pipeline.

`import type { OverrideInfo } from 'typeshade'`

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

## Syntax

```ts
interface OverrideInfo {
  readonly name: string;
  readonly emittedGlsl: string;
  readonly emitted: string;
  readonly type: string;
  readonly default: number | boolean;
}
```

## Description

A pipeline specialization constant (a WGSL `override`) the host supplies when it creates a pipeline. Both backends’ host-side shapes derive from it: the WGSL `constants` dictionary is `{ [name]: value }`, and the GLSL `#define` header is one `#define <name> <value>` line per entry. Both are keyed by `name` and fall back to `default` when the host supplies nothing.

## Instance properties

**`name` read only `string`**

The override’s authored name, the one the host supplies it by ([Rule 11.10](https://typeshade.dev/reference/rules/11-10/)).

**`emittedGlsl` read only `string`**

The GLSL spelling of the override, always present; equal to `emitted` where they agree.

**`emitted` read only `string`**

The override’s name in the emitted text ([Rule 11.10](https://typeshade.dev/reference/rules/11-10/)).

**`type` read only `string`**

**`default` read only `number | boolean`**

## Source

[`src/core/reflect/entry-types.ts`, line 132](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/reflect/entry-types.ts#L132), at commit af54ddad5
