Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@v0.35.0/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.