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

x/valibot/src/schemas/object/objectAsync.ts>objectAsync

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function objectAsync
import { objectAsync } from "https://deno.land/x/valibot@v0.19.0/src/schemas/object/objectAsync.ts";

Creates an async object schema.

Type Parameters

TObjectShape extends ObjectShapeAsync

Parameters

object: TObjectShape

The object schema.

A validation and transformation pipe.

Returns

An async object schema.

Creates an async object schema.

Type Parameters

TObjectShape extends ObjectShapeAsync

Parameters

object: TObjectShape

The object schema.

optional
error: ErrorMessage

The error message.

A validation and transformation pipe.

Returns

An async object schema.