mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #23626 from EricByers/patch-1
Update sqs-consumer Add terminateVisibilityTimeout
This commit is contained in:
Vendored
+2
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for sqs-consumer 3.7
|
||||
// Type definitions for sqs-consumer 3.8
|
||||
// Project: https://github.com/BBC/sqs-consumer
|
||||
// Definitions by: Daniel Chao <http://dchao.co/>
|
||||
// Eric Byers <http://github.com/EricByers>
|
||||
@@ -19,6 +19,7 @@ declare namespace Consumer {
|
||||
messageAttributeNames?: string[];
|
||||
batchSize?: number;
|
||||
visibilityTimeout?: number;
|
||||
terminateVisibilityTimeout?: boolean;
|
||||
waitTimeSeconds?: number;
|
||||
authenticationErrorTimeout?: number;
|
||||
sqs?: SQS;
|
||||
|
||||
@@ -17,7 +17,8 @@ const app2 = Consumer.create({
|
||||
region: "us-west-1",
|
||||
batchSize: 15,
|
||||
visibilityTimeout: 50,
|
||||
waitTimeSeconds: 50
|
||||
waitTimeSeconds: 50,
|
||||
terminateVisibilityTimeout: true
|
||||
});
|
||||
|
||||
// Test message handler.
|
||||
|
||||
Reference in New Issue
Block a user