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

x/valibot/mod.ts>PromiseSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface PromiseSchema
implements BaseSchema<Promise<unknown>, Promise<unknown>, PromiseIssue>
import { type PromiseSchema } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/mod.ts";

Promise schema type.

Type Parameters

TMessage extends ErrorMessage<PromiseIssue> | undefined

Properties

readonly
type: "promise"

The schema type.

readonly
reference: promise

The schema reference.

readonly
expects: "Promise"

The expected property.

readonly
message: TMessage

The error message.