# CustomSchema

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

Custom schema interface.

## Generics

- `TInput` `extends any`
- `TMessage` `extends ErrorMessage<CustomIssue> | undefined`

## Definition

- `CustomSchema` `extends BaseSchema<TInput, TInput, CustomIssue>`
  - `type` `'custom'`
  - `reference` `typeof custom`
  - `expects` `'unknown'`
  - `check` `(input: unknown) => boolean`
  - `message` `TMessage`
