You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by gl...@apache.org on 2019/05/07 13:14:47 UTC

[couchdb-nano] branch master updated: add replication to dbScope ts interface (#163)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4fed1e5  add replication to dbScope ts interface (#163)
4fed1e5 is described below

commit 4fed1e50488479596e4b2e440d96040c2dc72e36
Author: Vincze Dániel <vi...@gmail.com>
AuthorDate: Tue May 7 15:14:42 2019 +0200

    add replication to dbScope ts interface (#163)
---
 lib/nano.d.ts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/nano.d.ts b/lib/nano.d.ts
index 0cdfdcb..31b60d3 100644
--- a/lib/nano.d.ts
+++ b/lib/nano.d.ts
@@ -59,6 +59,11 @@ declare namespace nano {
   }
 
   interface DatabaseScope {
+    replication: {
+        enable(source, target, opts0, callback0?): any;
+        disable(id, rev, opts0, callback0?): any;
+        query(id, opts0, callback0?): any;
+    };
     // http://docs.couchdb.org/en/latest/api/database/common.html#put--db
     create(name: string, params?: DatabaseCreateParams, callback?: Callback<DatabaseCreateResponse>): Promise<DatabaseCreateResponse>;
     // http://docs.couchdb.org/en/latest/api/database/common.html#get--db