This is an automated email from the ASF dual-hosted git repository.

glynnbird pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-nano.git


The following commit(s) were added to refs/heads/main by this push:
     new 3c153b1  fix typing of 'since' options (#311)
3c153b1 is described below

commit 3c153b117d3fd46be1c6632dc63e8548488b258b
Author: insidewhy <[email protected]>
AuthorDate: Thu Nov 3 17:31:49 2022 +0800

    fix typing of 'since' options (#311)
---
 lib/nano.d.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/nano.d.ts b/lib/nano.d.ts
index 549db39..548f73f 100644
--- a/lib/nano.d.ts
+++ b/lib/nano.d.ts
@@ -248,7 +248,7 @@ declare namespace nano {
     /** whether to get a faster changes feed by supplying 'seq_interval'   */
     fastChanges?: boolean;
     /** where to begin the changes feed: 0, now or a sequence token */
-    since?: string;
+    since?: string | number;
     /** whether to return document bodies too */
     includeDocs?: boolean;
     /** number of milliseconds when the longpoll request will timeout */
@@ -965,7 +965,7 @@ declare namespace nano {
      * Can be valid update sequence or now value.
      *
      * @default 0 */
-    since?: number;
+    since?: string | number;
 
     /** Specifies how many revisions are returned in the changes array.
      * 

Reply via email to