mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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
This commit is contained in:
parent
24cd81ea1f
commit
48229011b8
6
types/pouchdb-core/index.d.ts
vendored
6
types/pouchdb-core/index.d.ts
vendored
@ -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<Content & AllDocsMeta>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user