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

x/valibot/mod.ts>DateSchema

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

Date schema type.

Type Parameters

TMessage extends ErrorMessage<DateIssue> | undefined

Properties

readonly
type: "date"

The schema type.

readonly
reference: date

The schema reference.

readonly
expects: "Date"

The expected property.

readonly
message: TMessage

The error message.