# FunctionSchema

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

Function schema interface.

## Generics

- `TMessage` `extends ErrorMessage<FunctionIssue> | undefined`

## Definition

- `FunctionSchema` `extends BaseSchema<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown, FunctionIssue>`
  - `type` `'function'`
  - `reference` `typeof function`
  - `expects` `'Function'`
  - `message` `TMessage`
