Skip to content

Commit

Permalink
manager using credentials (DefinitelyTyped#11078)
Browse files Browse the repository at this point in the history
Added overload to manager() to connect cluster using credentials (username/password)
  • Loading branch information
sanjaywadhwani authored and vvakame committed Sep 9, 2016
1 parent 4f1cd4f commit 88ae500
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions couchbase/couchbase.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 88ae500

Please sign in to comment.