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

x/valibot/src/schemas/promise/promise.ts>PromiseSchema

The modular and type safe schema library for validating structural data 🤖
Latest
interface PromiseSchema
implements BaseSchema<Promise<unknown>, Promise<unknown>, PromiseIssue>
import { type PromiseSchema } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/schemas/promise/promise.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.