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

x/valibot/src/schemas/instance/index.ts>InstanceSchema

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface InstanceSchema
implements BaseSchema<InstanceType<TClass>, InstanceType<TClass>, InstanceIssue>
import { type InstanceSchema } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/src/schemas/instance/index.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.