Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/methods/parser/parserAsync.ts>ParserAsync

The modular and type safe schema library for validating structural data 🤖
Latest
interface ParserAsync
import { type ParserAsync } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/methods/parser/parserAsync.ts";

The 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<InferOutput<TSchema>>

Parses an unknown input based on the schema.

Properties

readonly
schema: TSchema

The schema to be used.

readonly
config: TConfig

The parser configuration.