Add plugin to serialise ClientSchedule objects as JSON when it's passed from the server to client on SSR requests.
11 lines
304 B
TypeScript
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 }
|