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

x/valibot/src/index.ts>PromiseSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface PromiseSchema
implements BaseSchema<Promise<unknown>, Promise<unknown>, PromiseIssue>
import { type PromiseSchema } from "https://deno.land/x/valibot@v0.35.0/src/index.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.