# Parser

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

The parser interface.

## Generics

- `TSchema` `extends BaseSchema<unknown, unknown, BaseIssue<unknown>>`
- `TConfig` `extends Config<InferIssue<TSchema>> | undefined`

## Definition

- `Parser`
  - `(input: unknown) => InferOutput<TSchema>`
  - `schema` `TSchema`
  - `config` `TConfig`
