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

x/valibot/src/index.ts>LooseObjectSchema

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface LooseObjectSchema
implements BaseSchema<InferObjectInput<TEntries> & { [key: string]: unknown; }, InferObjectOutput<TEntries> & { [key: string]: unknown; }, LooseObjectIssue | InferObjectIssue<TEntries>>
Re-export
import { type LooseObjectSchema } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/index.ts";

Loose object schema type.

Type Parameters

TEntries extends ObjectEntries
TMessage extends ErrorMessage<LooseObjectIssue> | undefined

Properties

readonly
type: "loose_object"

The schema type.

readonly
reference: looseObject

The schema reference.

readonly
expects: "Object"

The expected property.

readonly
entries: TEntries

The entries schema.

readonly
message: TMessage

The error message.