providerplaneai
    Preparing search index...
    • Validates duration bounds and returns normalized numeric seconds.

      Parameters

      • value: number | undefined

        Raw value to validate.

      • minSeconds: number

        Minimum allowed duration.

      • maxSeconds: number

        Maximum allowed duration.

      Returns number | undefined

      Normalized duration value.

      When the provided duration is non-finite or outside the allowed range.