Day.js 510 B

123456789101112131415
  1. /**
  2. * @category Types
  3. * @summary Day type
  4. *
  5. * @description
  6. * The day of the week type alias (`0 | 1 | 2 | 3 | 4 | 5 | 6`). Unlike the date
  7. * (the number of days since the beginningof the month), which starts with 1
  8. * and is dynamic (can go up to 28, 30, or 31), the day starts with 0 and static
  9. * (always ends at 6). Look at it as an index in an array where Sunday is
  10. * the first element, and Saturday is the last.
  11. *
  12. * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6} Day
  13. */
  14. const Day = 0
  15. module.exports = Day