mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[@types/gremlin] Moved authentication classes to right namespace (#37222)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
c5e571bf4c
commit
a493e4cc42
@@ -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 {
|
||||
|
||||
Vendored
+9
-7
@@ -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>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user