(
exclusiveMaximum: globalThis.Date,
annotations?: Annotations.Filter
): SchemaAST.Filter<globalThis.Date>Validates that a Date is less than the specified value (exclusive).
Details
Arbitrary:
When generating test data with fast-check, this applies a max constraint of
one millisecond before the specified value to ensure generated Date objects
are less than it.
Date checks
Source effect/Schema.ts:77029 lines
export const const isLessThanDate: (
exclusiveMaximum: unknown,
annotations?: Annotations.Filter
) => SchemaAST.Filter<unknown>
Validates that a Date is less than the specified value (exclusive).
Details
Arbitrary:
When generating test data with fast-check, this applies a max constraint of
one millisecond before the specified value to ensure generated Date objects
are less than it.
isLessThanDate = function makeIsLessThan<T>(options: {
readonly order: Order.Order<T>
readonly annotate?:
| ((
exclusiveMaximum: T
) => Annotations.Filter)
| undefined
readonly formatter?: Formatter<T> | undefined
}): (
exclusiveMaximum: T,
annotations?: Annotations.Filter
) => SchemaAST.Filter<T>
Creates a less-than (<) check for any ordered type from an Order.Order
instance.
makeIsLessThan({
order: Order.Order<globalThis.Date>order: import OrderOrder.Date,
annotate?: | ((
exclusiveMaximum: unknown
) => Annotations.Filter)
| undefined
annotate: (exclusiveMaximum: unknownexclusiveMaximum) => ({
Annotations.Filter.meta?: Annotations.Meta | undefined(property) Annotations.Filter.meta?: {
_tag: 'isLessThanDate';
exclusiveMaximum: globalThis.Date;
}
Optional metadata used to identify or extend the filter with custom data.
meta: {
_tag: "isLessThanDate"_tag: "isLessThanDate",
exclusiveMaximum: globalThis.DateexclusiveMaximum
}
})
})Referenced by 1 symbols