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

x/valibot/src/schemas/custom/index.ts>CustomSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface CustomSchemaAsync
import { type CustomSchemaAsync } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/src/schemas/custom/index.ts";

Custom schema async type.

Type Parameters

TInput
TMessage extends ErrorMessage<CustomIssue> | undefined

Properties

readonly
type: "custom"

The schema type.

readonly
reference: customAsync

The schema reference.

readonly
expects: "unknown"

The expected property.

readonly
check: CheckAsync

The type check function.

readonly
message: TMessage

The error message.