# SafeParser

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

The safe parser interface.

## Generics

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

## Definition

- `SafeParser`
  - `(input: unknown) => SafeParseResult<TSchema>`
  - `schema` `TSchema`
  - `config` `TConfig`
