VariantLinkResult
이 페이지에서

VariantLinkResult

인터페이스, 배리언트 분류

What happened to one variant.

import type { VariantLinkResult } from 'typeshade'

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

구문

interface VariantLinkResult {
readonly key: string;
readonly ok: boolean;
readonly failedAt?: 'emit' | 'vertex' | 'fragment' | 'link';
readonly log?: string;
}

인스턴스 속성

key읽기 전용 string

The variant’s key in family.keys, the same id a pipeline cache would use for it.

ok읽기 전용 boolean
failedAt선택 사항읽기 전용 'emit' | 'vertex' | 'fragment' | 'link'

Which step failed. Absent when ok. 'emit' means the DSL threw before any GL call, which is a different bug from a driver rejecting valid-looking source.

log선택 사항읽기 전용 string

The driver’s log, or the thrown message. Absent when ok.

소스

src/core/variant-link.ts, 57행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고