(v: Date)
| 430 | : `${v}` |
| 431 | |
| 432 | const dateKeyOf = (v: Date): string => { |
| 433 | const time = timeOf(v) |
| 434 | return ( |
| 435 | time === undefined ? `$${nameOf(v)}` |
| 436 | : Number.isNaN(time) ? "d'Invalid Date'" |
| 437 | : `d'${v.toISOString()}'` |
| 438 | ) |
| 439 | } |
| 440 | |
| 441 | // props of a value without an alias are found by key before parsing |
| 442 | export const requiredPropOf = ( |
no test coverage detected