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

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

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface LooseObjectSchemaAsync
implements BaseSchemaAsync<InferObjectInput<TEntries> & { [key: string]: unknown; }, InferObjectOutput<TEntries> & { [key: string]: unknown; }, LooseObjectIssue | InferObjectIssue<TEntries>>
import { type LooseObjectSchemaAsync } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/src/schemas/looseObject/index.ts";

Object schema async type.

Type Parameters

TEntries extends ObjectEntriesAsync
TMessage extends ErrorMessage<LooseObjectIssue> | undefined

Properties

readonly
type: "loose_object"

The schema type.

readonly
reference: looseObjectAsync

The schema reference.

readonly
expects: "Object"

The expected property.

readonly
entries: TEntries

The entries schema.

readonly
message: TMessage

The error message.