GuardDefines
타입, 배리언트 분류
How to spell each axis value as a preprocessor define for emitGuarded.
import type { GuardDefines } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type GuardDefines<A extends Record<string, readonly unknown[]>> = { readonly [K in keyof A]: string | Readonly<Record<string, string>>;};설명
A boolean axis takes a single name, defined when true; any other axis takes one name per value.
소스
src/core/variant-family.ts, 74행, 커밋 c66579bf 기준