Variant
On this page

Variant

Interface in Variants

One built variant.

import type { Variant } from 'typeshade'

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

Syntax

interface Variant<A extends Record<string, readonly unknown[]>> {
readonly key: string;
readonly axes: AxisValues<A>;
readonly module: ModuleDecl;
readonly reflection: Reflection;
}

Instance properties

keyread only string
axesread only AxisValues<A>
moduleread only ModuleDecl
reflectionread only Reflection

This variant’s own reflect result, so each program the host can select is described separately.

See also

Source

src/core/variant-family.ts, line 63, at commit 26de7be8

Edit this page Report a problem