Skip to content

Commit

Permalink
feat(publish): Less strictness regarding outgoing message types
Browse files Browse the repository at this point in the history
  • Loading branch information
amsross committed Mar 17, 2020
1 parent 19c97e3 commit 003b83c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/AmqpConnectionManager.re
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module ChannelWrapper = {

[@bs.send]
external publish':
(t, Exchange.name, routingKey, Js.Json.t, Js.t('options)) =>
(t, Exchange.name, routingKey, 'message, Js.t('options)) =>
Js.Promise.t(unit) =
"publish";

Expand All @@ -91,7 +91,7 @@ module ChannelWrapper = {

[@bs.send]
external sendToQueue':
(t, Queue.name, Js.Json.t, Js.t('options)) => Js.Promise.t(unit) =
(t, Queue.name, 'message, Js.t('options)) => Js.Promise.t(unit) =
"sendToQueue";

let sendToQueue = (t, q, m, o) =>
Expand Down
6 changes: 3 additions & 3 deletions src/AmqpConnectionManager.rei
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ module ChannelWrapper: {
t;

let publish:
(t, Exchange.name, routingKey, Js.Json.t, Js.t('options)) =>
Js.Promise.t(Js.Json.t);
(t, Exchange.name, routingKey, 'message, Js.t('options)) =>
Js.Promise.t('message);

let sendToQueue:
(t, Queue.name, Js.Json.t, Js.t('options)) => Js.Promise.t(Js.Json.t);
(t, Queue.name, 'message, Js.t('options)) => Js.Promise.t('message);
};

module AmqpConnectionManager: {
Expand Down

0 comments on commit 003b83c

Please sign in to comment.