mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Remove prettier formatting
This commit is contained in:
parent
6fde3e1258
commit
3649fccf57
96
types/amqplib/callback_api.d.ts
vendored
96
types/amqplib/callback_api.d.ts
vendored
@ -12,73 +12,27 @@ export interface Connection extends events.EventEmitter {
|
||||
export interface Channel extends events.EventEmitter {
|
||||
close(callback: (err: any) => void): void;
|
||||
|
||||
assertQueue(
|
||||
queue?: string,
|
||||
options?: Options.AssertQueue,
|
||||
callback?: (err: any, ok: Replies.AssertQueue) => void
|
||||
): void;
|
||||
assertQueue(queue?: string, options?: Options.AssertQueue, callback?: (err: any, ok: Replies.AssertQueue) => void): void;
|
||||
checkQueue(queue: string, callback?: (err: any, ok: Replies.AssertQueue) => void): void;
|
||||
|
||||
deleteQueue(
|
||||
queue: string,
|
||||
options?: Options.DeleteQueue,
|
||||
callback?: (err: any, ok: Replies.DeleteQueue) => void
|
||||
): void;
|
||||
deleteQueue(queue: string, options?: Options.DeleteQueue, callback?: (err: any, ok: Replies.DeleteQueue) => void): void;
|
||||
purgeQueue(queue: string, callback?: (err: any, ok: Replies.PurgeQueue) => void): void;
|
||||
|
||||
bindQueue(
|
||||
queue: string,
|
||||
source: string,
|
||||
pattern: string,
|
||||
args?: any,
|
||||
callback?: (err: any, ok: Replies.Empty) => void
|
||||
): void;
|
||||
unbindQueue(
|
||||
queue: string,
|
||||
source: string,
|
||||
pattern: string,
|
||||
args?: any,
|
||||
callback?: (err: any, ok: Replies.Empty) => void
|
||||
): void;
|
||||
bindQueue(queue: string, source: string, pattern: string, args?: any, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
unbindQueue(queue: string, source: string, pattern: string, args?: any, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
|
||||
assertExchange(
|
||||
exchange: string,
|
||||
type: string,
|
||||
options?: Options.AssertExchange,
|
||||
callback?: (err: any, ok: Replies.AssertExchange) => void
|
||||
): void;
|
||||
assertExchange(exchange: string, type: string, options?: Options.AssertExchange, callback?: (err: any, ok: Replies.AssertExchange) => void): void;
|
||||
checkExchange(exchange: string, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
|
||||
deleteExchange(
|
||||
exchange: string,
|
||||
options?: Options.DeleteExchange,
|
||||
callback?: (err: any, ok: Replies.Empty) => void
|
||||
): void;
|
||||
deleteExchange(exchange: string, options?: Options.DeleteExchange, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
|
||||
bindExchange(
|
||||
destination: string,
|
||||
source: string,
|
||||
pattern: string,
|
||||
args?: any,
|
||||
callback?: (err: any, ok: Replies.Empty) => void
|
||||
): void;
|
||||
unbindExchange(
|
||||
destination: string,
|
||||
source: string,
|
||||
pattern: string,
|
||||
args?: any,
|
||||
callback?: (err: any, ok: Replies.Empty) => void
|
||||
): void;
|
||||
bindExchange(destination: string, source: string, pattern: string, args?: any, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
unbindExchange(destination: string, source: string, pattern: string, args?: any, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
|
||||
publish(exchange: string, routingKey: string, content: Buffer, options?: Options.Publish): boolean;
|
||||
sendToQueue(queue: string, content: Buffer, options?: Options.Publish): boolean;
|
||||
|
||||
consume(
|
||||
queue: string,
|
||||
onMessage: (msg: Message | null) => any,
|
||||
options?: Options.Consume,
|
||||
callback?: (err: any, ok: Replies.Consume) => void
|
||||
): void;
|
||||
consume(queue: string, onMessage: (msg: Message | null) => any, options?: Options.Consume, callback?: (err: any, ok: Replies.Consume) => void): void;
|
||||
|
||||
cancel(consumerTag: string, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
get(queue: string, options?: Options.Get, callback?: (err: any, ok: Message | false) => void): void;
|
||||
@ -95,36 +49,22 @@ export interface Channel extends events.EventEmitter {
|
||||
}
|
||||
|
||||
export interface ConfirmChannel extends Channel {
|
||||
publish(
|
||||
exchange: string,
|
||||
routingKey: string,
|
||||
content: Buffer,
|
||||
options?: Options.Publish,
|
||||
callback?: (err: any, ok: Replies.Empty) => void
|
||||
): boolean;
|
||||
sendToQueue(
|
||||
queue: string,
|
||||
content: Buffer,
|
||||
options?: Options.Publish,
|
||||
callback?: (err: any, ok: Replies.Empty) => void
|
||||
): boolean;
|
||||
publish(exchange: string, routingKey: string, content: Buffer, options?: Options.Publish, callback?: (err: any, ok: Replies.Empty) => void): boolean;
|
||||
sendToQueue(queue: string, content: Buffer, options?: Options.Publish, callback?: (err: any, ok: Replies.Empty) => void): boolean;
|
||||
|
||||
waitForConfirms(callback?: (err: any) => void): void;
|
||||
}
|
||||
|
||||
export const credentials: {
|
||||
external(): {
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
};
|
||||
plain(
|
||||
username: string,
|
||||
password: string
|
||||
): {
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
username: string;
|
||||
password: string;
|
||||
plain(username: string, password: string): {
|
||||
mechanism: string;
|
||||
response(): Buffer;
|
||||
username: string;
|
||||
password: string;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user