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

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface ObjectSchema
import { type ObjectSchema } from "https://deno.land/x/valibot@v0.30.0/src/schemas/object/object.ts";

Object schema type.

Type Parameters

TEntries extends ObjectEntries
optional
TRest extends BaseSchema | undefined = undefined
optional
TOutput = ObjectOutput<TEntries, TRest>

Properties

type: "object"

The schema type.

entries: TEntries

The object entries schema.

rest: TRest

The object rest schema.

message: ErrorMessage | undefined

The error message.

pipe: Pipe<ObjectOutput<TEntries, TRest>> | undefined

The validation and transformation pipeline.