From cca2a80dda648c3ebfc5fac757f056086f3e4c33 Mon Sep 17 00:00:00 2001 From: Francis Filion Date: Fri, 3 Feb 2017 13:19:39 -0500 Subject: [PATCH] In CouchDB 2.0, the update_seq has become a string. --- pouchdb-core/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pouchdb-core/index.d.ts b/pouchdb-core/index.d.ts index 9797443f95..f591e521ca 100644 --- a/pouchdb-core/index.d.ts +++ b/pouchdb-core/index.d.ts @@ -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 { @@ -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).