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

x/valibot/src/index.ts>object

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

Creates an object schema.

Parameters

entries: TEntries

The object entries.

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

A validation and transformation pipe.

Returns

An object schema.

Creates an object schema.

Parameters

entries: TEntries

The object entries.

optional
message: ErrorMessage

The error message.

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

A validation and transformation pipe.

Returns

An object schema.

Creates an object schema.

Type Parameters

TEntries extends ObjectEntries
TRest extends BaseSchema | undefined

Parameters

entries: TEntries

The object entries.

rest: TRest

The object rest.

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

A validation and transformation pipe.

Returns

An object schema.

Creates an object schema.

Type Parameters

TEntries extends ObjectEntries
TRest extends BaseSchema | undefined

Parameters

entries: TEntries

The object entries.

rest: TRest

The object rest.

optional
message: ErrorMessage

The error message.

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

A validation and transformation pipe.

Returns

An object schema.