mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
amqplib: add missing authentication method definitions PLAIN, EXTERNAL (#22509)
This commit is contained in:
Vendored
+13
@@ -54,6 +54,19 @@ export interface ConfirmChannel extends Channel {
|
||||
waitForConfirms(callback?: (err: any) => void): void;
|
||||
}
|
||||
|
||||
export const credentials: {
|
||||
external(): {
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
};
|
||||
plain(username: string, password: string): {
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
username: string;
|
||||
password: string;
|
||||
};
|
||||
};
|
||||
|
||||
export function connect(callback: (err: any, connection: Connection) => void): void;
|
||||
export function connect(url: string, callback: (err: any, connection: Connection) => void): void;
|
||||
export function connect(url: string, socketOptions: any, callback: (err: any, connection: Connection) => void): void;
|
||||
|
||||
Vendored
+13
@@ -63,4 +63,17 @@ export interface ConfirmChannel extends Channel {
|
||||
waitForConfirms(): Promise<void>;
|
||||
}
|
||||
|
||||
export const credentials: {
|
||||
external(): {
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
};
|
||||
plain(username: string, password: string): {
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
username: string;
|
||||
password: string;
|
||||
};
|
||||
};
|
||||
|
||||
export function connect(url: string | Options.Connect, socketOptions?: any): Promise<Connection>;
|
||||
|
||||
Reference in New Issue
Block a user