Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-841

Provide Proper Type Definitions

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Incomplete
    • Major
    • None
    • None
    • None
    • None
    • 1

    Description

      I don't want to come across as ungrateful for the work that has been done to incorporate TypeScript users, but the current situation is unusable and confusing, especially when following the documentation for the SDK causes a loss of type safety. 

      For example, due to the use of the @hidecontructor tag on the Cluster class, I cannot directly instantiate a cluster like in the example while being type safe (it has type any). If I use ESModule syntax, I can 

      import 'couchbase'
      

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              brett19 Brett Lawson
              kralphs Kevin Ralphs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty