ShaderDslError
이 페이지에서

ShaderDslError지원 중단

상수, 진단 분류

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'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

const ShaderDslError: typeof TypeShadeError

설명

The former name of 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.

함께 보기

소스

src/core/diagnostics/error.ts, 92행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고