Hyperlinkv0.8.0-beta.28

Schema

Schema.isGreaterThanOrEqualToDateconsteffect/Schema.ts:7678
(
  minimum: globalThis.Date,
  annotations?: Annotations.Filter
): SchemaAST.Filter<globalThis.Date>

Validates that a Date is greater 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 min constraint to ensure generated Date objects are greater than or equal to the specified date.

Date checks
Source effect/Schema.ts:76789 lines
export const isGreaterThanOrEqualToDate = makeIsGreaterThanOrEqualTo({
  order: Order.Date,
  annotate: (minimum) => ({
    meta: {
      _tag: "isGreaterThanOrEqualToDate",
      minimum
    }
  })
})
Referenced by 1 symbols