UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

131 lines (130 loc) 3.73 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.union = exports.size = exports.min = exports.max = exports.make = exports.lessThan = exports.isNonEmpty = exports.isEmpty = exports.intersect = exports.empty = exports.before = exports.after = exports.IntervalTypeId = void 0; var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("./internal/schedule/interval.js")); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /** * @since 2.0.0 * @category symbols */ const IntervalTypeId = exports.IntervalTypeId = internal.IntervalTypeId; /** * Constructs a new interval from the two specified endpoints. If the start * endpoint greater than the end endpoint, then a zero size interval will be * returned. * * @since 2.0.0 * @category constructors */ const make = exports.make = internal.make; /** * An `Interval` of zero-width. * * @since 2.0.0 * @category constructors */ const empty = exports.empty = internal.empty; /** * Returns `true` if this `Interval` is less than `that` interval, `false` * otherwise. * * @since 2.0.0 * @category ordering */ const lessThan = exports.lessThan = internal.lessThan; /** * Returns the minimum of two `Interval`s. * * @since 2.0.0 * @category ordering */ const min = exports.min = internal.min; /** * Returns the maximum of two `Interval`s. * * @since 2.0.0 * @category ordering */ const max = exports.max = internal.max; /** * Returns `true` if the specified `Interval` is empty, `false` otherwise. * * @since 2.0.0 * @category ordering */ const isEmpty = exports.isEmpty = internal.isEmpty; /** * Returns `true` if the specified `Interval` is non-empty, `false` otherwise. * * @since 2.0.0 * @category ordering */ const isNonEmpty = exports.isNonEmpty = internal.isNonEmpty; /** * Computes a new `Interval` which is the intersection of this `Interval` and * that `Interval`. * * @since 2.0.0 * @category ordering */ const intersect = exports.intersect = internal.intersect; /** * Calculates the size of the `Interval` as the `Duration` from the start of the * interval to the end of the interval. * * @since 2.0.0 * @category getters */ const size = exports.size = internal.size; /** * Computes a new `Interval` which is the union of this `Interval` and that * `Interval` as a `Some`, otherwise returns `None` if the two intervals cannot * form a union. * * @since 2.0.0 * @category utils */ const union = exports.union = internal.union; /** * Construct an `Interval` that includes all time equal to and after the * specified start time. * * @since 2.0.0 * @category constructors */ const after = exports.after = internal.after; /** * Construct an `Interval` that includes all time equal to and before the * specified end time. * * @category constructors * @since 2.0.0 */ const before = exports.before = internal.before; //# sourceMappingURL=ScheduleInterval.js.map