Skip to content

Variable: isLuxonInterval()

ts
const isLuxonInterval: (value: unknown) => value is Interval;

Type guard to check if a value is a Luxon Interval instance

Parameters

ParameterTypeDescription
valueunknownThe value to check

Returns

value is Interval

True if the value is a Luxon Interval, false otherwise