---
title: "ShaderDslError: constant in Diagnostics, TypeShade API"
description: "ShaderDslError, a constant in Diagnostics. The former name of TypeShadeError…"
url: https://typeshade.dev/api/shaderdslerror/
language: en
---

# `ShaderDslError` deprecated

Constant in Diagnostics

The former name of TypeShadeError, kept so code written against the design documents and the pre-0.1.0 sources keeps resolving.

`import { ShaderDslError } from 'typeshade'`

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

## Syntax

```ts
const ShaderDslError: typeof TypeShadeError
```

## Description

The former name of [`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/), kept so code written against the design documents and the pre-0.1.0 sources keeps resolving. It is the same class, not a subclass, so `instanceof` behaves identically in both directions. What it cannot preserve is `error.name`, which reads `TypeShadeError` on every instance — a consumer matching that string must use the new spelling.

## See also

- [`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/)

## Source

[`src/core/diagnostics/error.ts`, line 92](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/diagnostics/error.ts#L92), at commit af54ddad5
