---
title: "Variant: interface in Variants, TypeShade API reference"
description: "Variant, an interface in Variants. One built variant. Feature axes as one family of modules, compiled and linked point by point."
url: https://typeshade.dev/api/variant/
language: en
---

# `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 af54ddad5.

## Syntax

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

## Instance properties

**`key` read only `string`**

**`axes` read only `AxisValues<A>`**

**`module` read only `ModuleDecl`**

**`reflection` read only `Reflection`**

This variant’s own [`reflect`](https://typeshade.dev/api/reflect/) result, so each program the host can select is described separately.

## See also

- [`reflect`](https://typeshade.dev/api/reflect/)

## Source

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