[@types/gremlin] Moved authentication classes to right namespace (#37222)

This commit is contained in:
William Bergeron-Drouin 2019-08-05 11:21:26 -07:00 committed by Nathan Shively-Sanders
parent c5e571bf4c
commit a493e4cc42
2 changed files with 16 additions and 15 deletions

View File

@ -5,14 +5,13 @@ import {
} from "gremlin";
const {
RemoteConnection,
RemoteStrategy,
RemoteTraversal,
DriverRemoteConnection,
Client,
ResultSet,
Authenticator,
PlainTextSaslAuthenticator,
RemoteConnection,
RemoteStrategy,
RemoteTraversal,
DriverRemoteConnection,
Client,
ResultSet,
auth: { Authenticator, PlainTextSaslAuthenticator },
} = driver;
const {

View File

@ -46,14 +46,16 @@ declare namespace driver {
first(): any;
}
class Authenticator {
constructor(options?: any);
evaluateChallenge(challenge: string): any;
}
namespace auth {
class Authenticator {
constructor(options?: any);
evaluateChallenge(challenge: string): any;
}
class PlainTextSaslAuthenticator extends Authenticator {
constructor(username: string, password: string, authzid?: string);
evaluateChallenge(challenge: string): Promise<any>;
class PlainTextSaslAuthenticator extends Authenticator {
constructor(username: string, password: string, authzid?: string);
evaluateChallenge(challenge: string): Promise<any>;
}
}
}