effect-io-ai

Package: effect
Module: Schema

Schema.isLessThanOrEqualToDate

Validates that a Date is less than or equal to the specified date (inclusive).

Details

JSON Schema:

This check does not have a direct JSON Schema equivalent, as JSON Schema validates date strings, not Date objects.

Arbitrary:

When generating test data with fast-check, this applies a max constraint to ensure generated Date objects are less than or equal to the specified date.

Signature

declare const isLessThanOrEqualToDate: (maximum: globalThis.Date, annotations?: Annotations.Filter) => SchemaAST.Filter<globalThis.Date>

Source

Since v4.0.0