﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head># VariantSchema

> This document is the Markdown version of [valibot.dev/api/VariantSchema/](https://valibot.dev/api/VariantSchema/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

Variant schema interface.

## Generics

- `TKey` `extends string`
- `TOptions` `extends VariantOptions<TKey>`
- `TMessage` `extends ErrorMessage<VariantIssue> | undefined`

## Definition

- `VariantSchema` `extends BaseSchema<InferInput<TOptions[number]>, InferOutput<TOptions[number]>, VariantIssue | InferVariantIssue