Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to send types #51

Closed
vorticalbox opened this issue May 28, 2020 · 1 comment
Closed

Changes to send types #51

vorticalbox opened this issue May 28, 2020 · 1 comment
Assignees
Labels

Comments

@vorticalbox
Copy link

Question
version 1.6.1 types for .send were

send(messages: string | string[] | ProducerMessage | ProducerMessage[], cb: ProducerCallback<void>): void;

this has been changed to

send(messages: string | string[]): Promise<SendMessageBatchResultEntryList>;

does this mean to old format of

{
  id: string;
  body: string;
  messageAttributes?: { [key: string]: ProducerMessageAttribute };
  delaySeconds?: number;
  groupId?: string;
  deduplicationId?: string;
}

is no longer supported or is it just missing types?

@vorticalbox vorticalbox changed the title chnages to send types Changes to send types May 28, 2020
@jeanrauwers jeanrauwers self-assigned this Jun 1, 2020
@jeanrauwers
Copy link
Contributor

You are welcome to send a PR with the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants