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