Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.28.1/mod.ts";

Creates an async object schema.

Type Parameters

TEntries extends ObjectEntriesAsync

Parameters

entries: TEntries

The object entries.

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

A validation and transformation pipe.

Returns

ObjectSchemaAsync<TEntries>

An async object schema.

Creates an async object schema.

Type Parameters

TEntries extends ObjectEntriesAsync

Parameters

entries: TEntries

The object entries.

optional
message: ErrorMessage

The error message.

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

A validation and transformation pipe.

Returns

ObjectSchemaAsync<TEntries>

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
pipe: PipeAsync<ObjectOutput<TEntries, TRest>>

A validation and transformation pipe.

Returns

ObjectSchemaAsync<TEntries, TRest>

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.

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

A validation and transformation pipe.

Returns

ObjectSchemaAsync<TEntries, TRest>

An async object schema.