()
| 205 | } |
| 206 | |
| 207 | export function nowUTC(): Date { |
| 208 | return fromZonedTime( |
| 209 | new Date(), |
| 210 | Intl.DateTimeFormat().resolvedOptions().timeZone, |
| 211 | ); |
| 212 | } |
| 213 | |
| 214 | export function exhaustiveGuard(val: never): never { |
| 215 | throw new Error(`Unhandled switch case: ${val}`); |
no outgoing calls
no test coverage detected