Skip to content

Commit

Permalink
fix(release): Change api function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lshabalkin committed Jul 13, 2020
1 parent 50334fd commit d355470
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export interface ClientSendMessage {
type Listener = (eventName: string, listener: (...args: any[]) => void) => void;

export interface Client {
send: (options: ClientSendMessage) => Promise<any>;
consume: (callback: MessageHandler) => Promise<any>;
consumeByAction: (actionType: string, callback: MessageHandler) => Promise<any>;
send: (options: ClientSendMessage) => Promise<void>;
consume: (callback: MessageHandler) => Promise<void>;
consumeByAction: (actionType: string, callback: MessageHandler) => Promise<void>;
cancel: () => Promise<void>;
close: () => Promise<void>;
on: Listener;
Expand All @@ -40,7 +40,7 @@ export function createClient(options: CreateServiceOptions): Client {
const { service, connection } = connect(options);

return {
send: async (clientSendMessageOptions: ClientSendMessage): Promise<any> =>
send: async (clientSendMessageOptions: ClientSendMessage): Promise<void> =>
connection.then(async () => {
const { payload, action, requestId, recipients = [], correlationId, routingKey, isOriginalContent = false } = clientSendMessageOptions;
const sendMessageOptions = {
Expand Down

0 comments on commit d355470

Please sign in to comment.