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 🤖
Extremely Popular
Go to Latest
type alias InstanceSchema
import { type InstanceSchema } from "https://deno.land/x/valibot@v0.28.1/src/schemas/instance/index.ts";

Instance schema type.

Type Parameters

TClass extends Class
optional
TOutput = InstanceType<TClass>
definition: BaseSchema<InstanceType<TClass>, TOutput> & { type: "instance"; class: TClass; message: ErrorMessage | undefined; pipe: Pipe<InstanceType<TClass>> | undefined; }