mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[@types/gremlin] Moved authentication classes to right namespace (#37222)
This commit is contained in:
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 {
|
||||
|
||||
16
types/gremlin/index.d.ts
vendored
16
types/gremlin/index.d.ts
vendored
@ -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>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user