Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / unionOfIntervalsMs

Function: unionOfIntervalsMs()

ts
function unionOfIntervalsMs(intervals): number;

Defined in: packages/core/src/l0/telemetry-reduce.ts:581

Total length of the union of possibly overlapping intervals, exported (RV3404) so the journal fold computes its window coverage through the SAME arithmetic the live RV710 decomposition uses, never a sibling implementation that can drift.

Parameters

ParameterType
intervalsreadonly { from: number; to: number; }[]

Returns

number