Skip to content

Function: isLuxonInterval()

ts
function isLuxonInterval(value: unknown): value is Interval<boolean>;

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

Parameters

ParameterTypeDescription
valueunknownThe value to check

Returns

value is Interval<boolean>

True if the value is a Luxon Interval, false otherwise