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 onlystringaxesread onlyAxisValues<A>moduleread onlyModuleDeclreflectionread onlyReflectionThis variant’s own
reflectresult, so each program the host can select is described separately.
See also
Source
src/core/variant-family.ts, line 63, at commit 26de7be8