Hyperlinkv0.8.0-beta.28

Schema

Schema.isLessThanDateconsteffect/Schema.ts:7702
(
  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 isLessThanDate = makeIsLessThan({
  order: Order.Date,
  annotate: (exclusiveMaximum) => ({
    meta: {
      _tag: "isLessThanDate",
      exclusiveMaximum
    }
  })
})
Referenced by 1 symbols