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

x/valibot/src/schemas/index.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.24.0/src/schemas/index.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.