Merge pull request #14427 from filionf/update_seq-datatype

[pouchdb-core] In CouchDB 2.0, the update_seq has become a string.
This commit is contained in:
Arthur Ozga
2017-02-09 14:13:34 -08:00
committed by GitHub
+3 -2
View File
@@ -45,7 +45,7 @@ declare namespace PouchDB {
doc_count: number;
/** Sequence number of the database. It starts at 0 and gets incremented every time a document is added or modified */
update_seq: number;
update_seq: number | string;
}
interface Revision<Content> {
@@ -221,8 +221,9 @@ declare namespace PouchDB {
/**
* Start the results from the change immediately after the given sequence number.
* You can also pass `'now'` if you want only new changes (when `live` is `true`).
*
*/
since?: 'now' | number;
since?: 'now' | number | string;
/**
* Request timeout (in milliseconds).