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

Module augmentation is not working for return classes

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 4.2.4
    • library
    • 0

    Description

      I tried to augment the `couchbase` module with the following :

       

      declare module 'couchbase' {
      class LookupInSpec<T> {
      static get<T = any>(path: DocumentPath<T> | LookupInMacro, options?: \{ xattr?: boolean; });
      }
       
      class Collection {
      lookupIn<T = any>(key: string, specs: LookupInSpec<T>[], options?: LookupInOptions, callback?: NodeCallback<LookupInResult>): Promise<LookupInResult>;
      }
      }
      

      The type of `LookupInSpec` is augmented but not the type of `Collection`

      Attachments

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

        Activity

          People

            jared.casey Jared Casey
            JesusTheHun Jonathan MASSUCHETTI
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty