---
title: "VariantLinkResult: interface in Variants, TypeShade API"
description: "VariantLinkResult, an interface in Variants. What happened to one variant."
url: https://typeshade.dev/api/variantlinkresult/
language: en
---

# `VariantLinkResult`

Interface in Variants

What happened to one variant.

`import type { VariantLinkResult } from 'typeshade'`

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

## Syntax

```ts
interface VariantLinkResult {
  readonly key: string;
  readonly ok: boolean;
  readonly failedAt?: 'emit' | 'vertex' | 'fragment' | 'link';
  readonly log?: string;
}
```

## Instance properties

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

The variant’s key in `family.keys`, the same id a pipeline cache would use for it.

**`ok` read only `boolean`**

**`failedAt` optional read only `'emit' | 'vertex' | 'fragment' | 'link'`**

Which step failed. Absent when `ok`. `'emit'` means the DSL threw before any GL call, which is a different bug from a driver rejecting valid-looking source.

**`log` optional read only `string`**

The driver’s log, or the thrown message. Absent when `ok`.

## Source

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