---
title: "GuardDefines: type in Variants, TypeShade API reference"
description: "GuardDefines, a type in Variants. How to spell each axis value as a preprocessor define for emitGuarded."
url: https://typeshade.dev/api/guarddefines/
language: en
---

# `GuardDefines`

Type in Variants

How to spell each axis value as a preprocessor define for emitGuarded.

`import type { GuardDefines } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

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

## Description

A boolean axis takes a single name, defined when true; any other axis takes one name per value.

## Source

[`src/core/variant-family.ts`, line 74](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/variant-family.ts#L74), at commit af54ddad5
