From 88ae50037116bd7ec7597053e31d0bd9e5db0710 Mon Sep 17 00:00:00 2001 From: sanjaywadhwani Date: Fri, 9 Sep 2016 16:15:33 +0200 Subject: [PATCH] manager using credentials (#11078) Added overload to manager() to connect cluster using credentials (username/password) --- couchbase/couchbase.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/couchbase/couchbase.d.ts b/couchbase/couchbase.d.ts index 351c9a806dc930..2508f0e1d58340 100644 --- a/couchbase/couchbase.d.ts +++ b/couchbase/couchbase.d.ts @@ -159,6 +159,14 @@ declare module 'couchbase' { * Creates a manager allowing the management of a Couchbase cluster. */ manager(): ClusterManager; + + + /** + * Creates a manager allowing the management of a Couchbase cluster using credentials. + * @param username The username for your cluster. + * @param password The password for your cluster. + */ + manager(username: string, password: string): ClusterManager; /** * Open a bucket to perform operations. This will begin the handshake process immediately and operations will complete later. Subscribe to the connect event to be alerted when the connection is ready, though be aware operations can be successfully queued before this.