owltide/shared/utils/luxon.ts
Hornwitser 73bb12c104
All checks were successful
/ build (push) Successful in 1m29s
/ deploy (push) Successful in 16s
Add payload plugin for ClientSchedule
Add plugin to serialise ClientSchedule objects as JSON when it's passed
from the server to client on SSR requests.
2025-06-13 22:01:42 +02:00

11 lines
304 B
TypeScript

// Wrapper around Luxon to make sure the throwOnInvalid option is set
import { DateTime, FixedOffsetZone, Info, Settings, Zone } from "luxon";
Settings.throwOnInvalid = true;
declare module 'luxon' {
interface TSSettings {
throwOnInvalid: true;
}
}
export { DateTime, FixedOffsetZone, Info, Zone }