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

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

The modular and type safe schema library for validating structural data 🤖
Latest
function looseObject
import { looseObject } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/schemas/looseObject/looseObject.ts";

Creates a loose object schema.

Type Parameters

TEntries extends ObjectEntries

Parameters

entries: TEntries

The entries schema.

Returns

LooseObjectSchema<TEntries, undefined>

A loose object schema.

Creates a loose object schema.

Type Parameters

TEntries extends ObjectEntries
TMessage extends ErrorMessage<LooseObjectIssue> | undefined

Parameters

entries: TEntries

The entries schema.

message: TMessage

The error message.

Returns

LooseObjectSchema<TEntries, TMessage>

A loose object schema.