# 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>, InferSetOutput<TValue>, SetIssue | InferIssue<TValue>>`
  - `type` `'set'`
  - `reference` `typeof set`
  - `expects` `'Set'`
  - `value` `TValue`
  - `message` `TMessage`
