apache / couchdb-nano

Nano: The official Apache CouchDB library for Node.js
https://www.npmjs.com/package/nano
Apache License 2.0
651 stars 165 forks source link

Type update_seq as optional in DocumentViewResponse #278

Closed vividn closed 3 years ago

vividn commented 3 years ago

Overview

When calling db.view, a value for update_seq is only returned if requested in the params with update_seq: true. Therefore, the type for the response in DocumentViewResponse should have this as optional

Testing recommendations

Call any view with update_seq: false in the params, notice how update_seq is not in the return value

Checklist