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

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function object
import { object } from "https://deno.land/x/valibot@v0.28.1/src/schemas/object/object.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.