Interface SessionPhaseSource

Anything that can lay its phases out over a range: SessionCalendar, Instrument, or a host's own hours. The spans are consecutive, never overlap, and cover the range from its start to its end.

interface SessionPhaseSource {
    phaseSpans(
        fromUtcSeconds: number,
        toUtcSeconds: number,
    ): readonly SessionPhaseSpan[];
}

Methods

Methods