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

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

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