---
title: "GuardDefines: TypeShade 셰이더 API의 배리언트 분류 타입 참조 문서"
description: "GuardDefines, TypeShade API의 배리언트 분류에 속하는 타입입니다. emitGuarded에 넘기는 전처리기 define으로 각 축 값을 적는 방법입니다."
url: https://typeshade.dev/ko/api/guarddefines/
language: ko
---

# `GuardDefines`

타입, 배리언트 분류

emitGuarded에 넘기는 전처리기 define으로 각 축 값을 적는 방법입니다.

`import type { GuardDefines } from 'typeshade'`

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

```ts
type GuardDefines<A extends Record<string, readonly unknown[]>> = {
  readonly [K in keyof A]: string | Readonly<Record<string, string>>;
};
```

## 설명

불리언 축은 이름 하나만 받습니다. 이 이름은 값이 참일 때 정의됩니다. 그 밖의 축은 값마다 이름 하나씩 받습니다.

## 소스

[`src/core/variant-family.ts`, 74행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/variant-family.ts#L74), 커밋 af54ddad5 기준
