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.29.0/mod.ts";

Creates an async object schema.

Parameters

entries: TEntries

The object entries.

optional
pipe: PipeAsync<ObjectOutput<TEntries, undefined>>

A validation and transformation pipe.

Returns

An async object schema.

Creates an async object schema.

Parameters

entries: TEntries

The object entries.

optional
message: ErrorMessage

The error message.

optional
pipe: PipeAsync<ObjectOutput<TEntries, undefined>>

A validation and transformation pipe.

Returns

An async object schema.

Creates an async object schema.

Type Parameters

TEntries extends ObjectEntriesAsync
TRest extends BaseSchema | BaseSchemaAsync | undefined

Parameters

entries: TEntries

The object entries.

rest: TRest

The object rest.

A validation and transformation pipe.

Returns

An async object schema.

Creates an async object schema.

Type Parameters

TEntries extends ObjectEntriesAsync
TRest extends BaseSchema | BaseSchemaAsync | undefined

Parameters

entries: TEntries

The object entries.

rest: TRest

The object rest.

optional
message: ErrorMessage

The error message.

A validation and transformation pipe.

Returns

An async object schema.