(date: globalThis.Date)
| 8119 | } |
| 8120 | |
| 8121 | function encodeDatePayload(date: globalThis.Date): string { |
| 8122 | if (globalThis.Number.isNaN(date.getTime())) { |
| 8123 | throw new globalThis.RangeError(`Expected a valid Date, got ${format(date)}`) |
| 8124 | } |
| 8125 | return date.toISOString() |
| 8126 | } |
| 8127 | |
| 8128 | /** |
| 8129 | * Validates that a Date is greater than the specified value (exclusive). |