GuardDefines
On this page

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 26de7be8.

Syntax

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, at commit 26de7be8

Edit this page Report a problem