Skip to content

Commit

Permalink
Merge pull request #8 from Sagacify/fix-typing
Browse files Browse the repository at this point in the history
fix(types): change Body & MessageBody to any
  • Loading branch information
OlivierCuyp authored Jun 4, 2022
2 parents f1a89c2 + d9f23e3 commit f7e1ba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SqsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class SqsHandler {

export type SimpleMessageAttributes = Record<string, undefined | string | SQS.Binary>;
export type SimpleMessage = Omit<SQS.Message, 'Body' | 'MessageAttributes'> & {
Body: unknown;
Body: any;
MessageAttributes?: SimpleMessageAttributes;
};
export type ReceiveOptions = Omit<
Expand All @@ -267,7 +267,7 @@ export type SendBatchEntry = Omit<
SQS.SendMessageBatchRequestEntry,
'MessageAttributes' | 'MessageBody'
> & {
MessageBody: unknown;
MessageBody: any;
MessageAttributes?: SimpleMessageAttributes;
};
export type SqsReadableOptions = ReceiveOptions & {
Expand Down

0 comments on commit f7e1ba0

Please sign in to comment.