Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>SafeParserAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface SafeParserAsync
import { type SafeParserAsync } from "https://deno.land/x/valibot@v0.35.0/mod.ts";

The safe parser async type.

Type Parameters

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

Call Signatures

(input: unknown): Promise<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.