ricardosilva89 opened a new issue #178: Definition types seem to be wrong for DatabaseScope and DocumentScope<D> URL: https://github.com/apache/couchdb-nano/issues/178 Definition types seem to be wrong. When we initialise nano, this returns an object type `ServerScope` that has a prop `ServerScope.db:DatabaseScope`. If we check the definition type, this object has a method called `changesAsStream`, but in reality, when we check the code it doesn't exist. [nano.js](https://github.com/apache/couchdb-nano/blob/master/lib/nano.js#L954) VS [types](https://github.com/apache/couchdb-nano/blob/master/lib/nano.d.ts#L61) But when we call `ServerScope.db.use` we will receive a `DocumentScope<D>` object that in reality has `changesAsStream` but doesn't exist in the definition file. [nano.js](https://github.com/apache/couchdb-nano/blob/master/lib/nano.js#L877) VS [types](https://github.com/apache/couchdb-nano/blob/master/lib/nano.d.ts#L110)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
