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

x/valibot/mod.ts>InstanceSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface InstanceSchema
implements BaseSchema<InstanceType<TClass>, InstanceType<TClass>, InstanceIssue>
import { type InstanceSchema } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/mod.ts";

Instance schema type.

Type Parameters

TClass extends Class
TMessage extends ErrorMessage<InstanceIssue> | undefined

Properties

readonly
type: "instance"

The schema type.

readonly
reference: instance

The schema reference.

readonly
class: TClass

The class of the instance.

readonly
message: TMessage

The error message.