(parts: DateParts)
| 74 | } |
| 75 | |
| 76 | function toDate(parts: DateParts): Date | undefined { |
| 77 | const p = validParts(parts); |
| 78 | return p ? new Date(Date.UTC(p.year, p.month - 1, p.day)) : undefined; |
| 79 | } |
| 80 | |
| 81 | function segmentBounds( |
| 82 | type: 'year' | 'month' | 'day', |
no test coverage detected