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

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

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function looseObjectAsync
import { looseObjectAsync } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/src/schemas/looseObject/index.ts";

Creates a loose object schema.

Parameters

entries: TEntries

The entries schema.

Returns

A loose object schema.

Creates a loose object schema.

Type Parameters

TEntries extends ObjectEntriesAsync
TMessage extends ErrorMessage<LooseObjectIssue> | undefined

Parameters

entries: TEntries

The entries schema.

message: TMessage

The error message.