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

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface InstanceSchemaAsync
implements BaseSchemaAsync<InstanceType<TClass>, TOutput>
import { type InstanceSchemaAsync } from "https://deno.land/x/valibot@v0.30.0/src/schemas/instance/index.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: PipeAsync<InstanceType<TClass>> | undefined

The validation and transformation pipeline.