Hyperlinkv0.8.0-beta.28

Schema

Schema.isGreaterThanDateconsteffect/Schema.ts:7648
(
  exclusiveMinimum: globalThis.Date,
  annotations?: Annotations.Filter
): SchemaAST.Filter<globalThis.Date>

Validates that a Date is greater than the specified value (exclusive).

Details

Arbitrary:

When generating test data with fast-check, this applies a min constraint of one millisecond after the specified value to ensure generated Date objects are greater than it.

Date checks
Source effect/Schema.ts:76489 lines
export const isGreaterThanDate = makeIsGreaterThan({
  order: Order.Date,
  annotate: (exclusiveMinimum) => ({
    meta: {
      _tag: "isGreaterThanDate",
      exclusiveMinimum
    }
  })
})
Referenced by 1 symbols