Interval.js 528 B

1234567891011121314151617
  1. /**
  2. * @category Types
  3. * @summary An object that combines two dates to represent the time interval.
  4. *
  5. * @description
  6. * An object that combines two dates to represent the time interval.
  7. *
  8. * @typedef {Object} Interval
  9. * @property {Date|Number} start - the start of the interval
  10. * @property {Date|Number} end - the end of the interval
  11. * @throws {RangeError} The start of an interval cannot be after its end
  12. * @throws {RangeError} Date in interval cannot be `Invalid Date`
  13. */
  14. var Interval = {}
  15. module.exports = Interval