CapProfile
이 페이지에서

CapProfile

타입, 백엔드 분류

A backend's capability table, and the single authority for what its target supports.

import type { CapProfile } from 'typeshade'

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

구문

type CapProfile = Readonly<Partial<Record<Capability, CapSupport>>>;

설명

Membership is support: a capability with a row can be emitted on this target, and a capability without one makes emit throw UnsupportedFeatureError naming it. Everything else is derived from the same rows: coverage from the keys (Capabilities.fromProfile), the source directive header from each row’s directive, and the host activation list from each row’s hostFeature (hostFeaturesFor), so the three cannot disagree.

함께 보기

소스

src/core/backend.ts, 57행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고