Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/src/schemas/index.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@v0.35.0/src/schemas/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.