2025-06-30 18:58:24 +02:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: © 2025 Hornwitser <code@hornwitser.no>
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/
|
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 }
|