# SetSchemaAsync

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

Set schema async interface.

## Generics

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

## Definition

- `SetSchemaAsync` `extends BaseSchemaAsync<InferSetInput<TValue>, InferSetOutput<TValue>, SetIssue | InferIssue<TValue>>`
  - `type` `'set'`
  - `reference` `typeof set | typeof setAsync`
  - `expects` `'Set'`
  - `value` `TValue`
  - `message` `TMessage`
