Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4798

Some deprecated overloads come before non-deprecated ones

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.12.0
    • Affects Version/s: 4.10.0, 4.11.0
    • Component/s: None
    • Labels:
    • 2
    • Not Needed
    • Not Needed

      What problem are you facing?

      Since the deprecation of callbacks in 4.10.0, some deprecated overloads now come before their non-deprecated counterparts, causing some type issues in certain edge cases. These will be explained better in the PR I'm about to open to fix this issue

      What driver and relevant dependency versions are you using?

      4.11.0

      Steps to reproduce?

      Either use the ReturnType type from TS on a method with a deprecated overload or try to call a method with a deprecated overload and have an error in one of your parameters

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            rodrigoleitao25@gmail.com Rodrigo Leitão
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: