UNPKG

sqs-producer

Version:

Enqueues messages onto a given SQS queue

9 lines (8 loc) 396 B
import type { SendMessageBatchRequestEntry } from "@aws-sdk/client-sqs"; import type { Message } from "./types.js"; /** * Converts a message to a SendMessageBatchRequestEntry using the appropriate method * depending on if the message is a string or an object * @param message The message to convert */ export declare function toEntry(message: string | Message): SendMessageBatchRequestEntry;