Skip to main content
Module

x/valibot/mod.ts>object

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