Skip to main content
Module

x/valibot/mod.ts>InstanceSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface InstanceSchema
implements BaseSchema<InstanceType<TClass>, TOutput>
import { type InstanceSchema } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Instance schema type.

Type Parameters

TClass extends Class
optional
TOutput = InstanceType<TClass>

Properties

type: "instance"

The schema type.

class: TClass

The class of the instance.

message: ErrorMessage | undefined

The error message.

pipe: Pipe<InstanceType<TClass>> | undefined

The validation and transformation pipeline.