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 🤖
Go to Latest
interface PromiseSchema
implements BaseSchema<Promise<unknown>, Promise<unknown>, PromiseIssue>
import { type PromiseSchema } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/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.