2025-06-12 21:45:34 +02:00
|
|
|
// Wrapper around Luxon to make sure the throwOnInvalid option is set
|
2025-06-13 22:01:42 +02:00
|
|
|
import { DateTime, 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-13 22:01:42 +02:00
|
|
|
export { DateTime, FixedOffsetZone, Info, Zone }
|