Skip to main content
Module

x/valibot/mod.ts>objectAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function objectAsync
Re-export
import { objectAsync } from "https://deno.land/x/valibot@v0.13.1/mod.ts";

Creates an async object schema.

Type Parameters

TObjectShape extends ObjectShapeAsync

Parameters

object: TObjectShape

The object schema.

optional
pipe: PipeAsync<ObjectOutput<TObjectShape>>

A validation and transformation pipe.

Returns

ObjectSchemaAsync<TObjectShape>

An async object schema.

Creates an async object schema.

Type Parameters

TObjectShape extends ObjectShapeAsync

Parameters

object: TObjectShape

The object schema.

optional
error: string

The error message.

optional
pipe: PipeAsync<ObjectOutput<TObjectShape>>

A validation and transformation pipe.

Returns

ObjectSchemaAsync<TObjectShape>

An async object schema.