Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/valibot/src/methods/safeParser/index.ts>SafeParser

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface SafeParser
import { type SafeParser } from "https://deno.land/x/valibot@1.0.0-beta.0-to-json-schema/src/methods/safeParser/index.ts";

The safe parser type.

Type Parameters

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

Call Signatures

(input: unknown): SafeParseResult<TSchema>

Parses an unknown input based on the schema.

Properties

readonly
schema: TSchema

The schema to be used.

readonly
config: TConfig

The parser configuration.