MCPcopy Index your code
hub / github.com/Effect-TS/effect / mergeDateConstraints

Function mergeDateConstraints

packages/effect/src/Arbitrary.ts:708–714  ·  view source on GitHub ↗
(c1: DateConstraints, c2: DateConstraints)

Source from the content-addressed store, hash-verified

706}
707
708function mergeDateConstraints(c1: DateConstraints, c2: DateConstraints): DateConstraints {
709 return makeDateConstraints({
710 min: getMax(c1.constraints.min, c2.constraints.min),
711 max: getMin(c1.constraints.max, c2.constraints.max),
712 noInvalidDate: getOr(c1.constraints.noInvalidDate, c2.constraints.noInvalidDate)
713 })
714}
715
716function buildDateConstraints(description: DateFromSelf): DateConstraints | undefined {
717 return description.constraints.length === 0

Callers

nothing calls this directly

Calls 4

makeDateConstraintsFunction · 0.85
getMaxFunction · 0.85
getMinFunction · 0.85
getOrFunction · 0.85

Tested by

no test coverage detected