2025-06-12 21:45:34 +02:00
|
|
|
// Wrapper around Luxon to make sure the throwOnInvalid option is set
|
2025-06-14 19:22:53 +02:00
|
|
|
import { DateTime, Duration, FixedOffsetZone, Info, Settings, Zone } from "luxon";
|
2025-06-12 21:45:34 +02:00
|
|
|
|
|
|
|
Settings.throwOnInvalid = true;
|
|
|
|
declare module 'luxon' {
|
|
|
|
interface TSSettings {
|
|
|
|
throwOnInvalid: true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-06-14 19:22:53 +02:00
|
|
|
export { DateTime, Duration, FixedOffsetZone, Info, Zone }
|