From 48229011b8fab9f9585c07eb221686b71f5ffced Mon Sep 17 00:00:00 2001 From: Jordan Curzon Date: Wed, 25 Sep 2019 10:51:52 -0700 Subject: [PATCH] pouchdb-core: Add missing update_seq field to interfaces (#38395) * pouchdb-core: Add missing field to AllDocsOptions Related API Docs: https://pouchdb.com/api.html#batch_fetch * pouchdb-core: Add missing field to AllDocsResponse --- types/pouchdb-core/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/pouchdb-core/index.d.ts b/types/pouchdb-core/index.d.ts index 37c939c7a4..31042e086e 100644 --- a/types/pouchdb-core/index.d.ts +++ b/types/pouchdb-core/index.d.ts @@ -297,6 +297,11 @@ declare namespace PouchDB { * Causes poor performance on IndexedDB and LevelDB. */ skip?: number; + /** + * Include an update_seq value indicating which sequence id + * of the underlying database the view reflects. + */ + update_seq?: boolean; } interface AllDocsWithKeyOptions extends AllDocsOptions { /** Constrain results to documents matching this key. */ @@ -328,6 +333,7 @@ declare namespace PouchDB { /** The `skip` if provided, or in CouchDB the actual offset */ offset: number; total_rows: number; + update_seq?: number | string; rows: Array<{ /** Only present if `include_docs` was `true`. */ doc?: ExistingDocument;