Remove prettier formatting

This commit is contained in:
Jacob Gardner 2019-02-26 13:37:13 -06:00
parent 6fde3e1258
commit 3649fccf57

View File

@ -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;
};
};