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

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

Set schema interface.

## Generics

- `TValue` `extends BaseSchema<unknown, unknown, BaseIssue<unknown>>`
- `TMessage` `ErrorMessage<SetIssue> | undefined`

## Definition

- `SetSchema` `extends BaseSchema<InferSetInput<TValue>, Inf