Sports Lib API - v23.12.1
    Preparing search index...

    Function resolveSwimTimingSeconds

    • Resolve usable swim-length timing in seconds, retaining valid zero. A rejected timer returns null even if elapsed time is valid: elapsed can include rests. Otherwise use the timer when present, or an unrejected elapsed value when the timer is absent, preserving the existing fallback for legacy lengths without a timing-validity marker. Callers must keep null unavailable rather than apply another elapsed/date/zero fallback.

      Parameters

      • length: {
            elapsedTime: { getValue(): unknown } | null;
            timerTime: { getValue(): unknown } | null;
            timingValidity?: TimingValidity;
        }

      Returns number | null