TS2740: Type { RedrivePolicy: string; } is missing the following properties from type Record<QueueAttributeName, string> :
All, ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible
, and 17 more.
This code didn't produce Typescript Error at least until 3.421.0.
Current Behavior
Typescript error that says as below:
TS2740: Type { RedrivePolicy: string; } is missing the following properties from type Record<QueueAttributeName, string> :
All, ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible
, and 17 more.
Describe the bug
A simple code below:
gives TypeScript error as follows:
Expected Behavior
This code should compile with Typescript.
Specifiying all the parameters is not required, it can be seen as, for example, here: https://docs.aws.amazon.com/cli/latest/reference/sqs/create-queue.html
This code didn't produce Typescript Error at least until 3.421.0.
Current Behavior
Typescript error that says as below:
Reproduction Steps
Use aws-sdk with version >=3.430.0 for example, and run
tsc
Possible Solution
Change the type of
Attributes
into something likePartial< Record<QueueAttributeName, string> >
?Additional Information/Context
No response
SDK version used
3.431.0
Environment details (OS name and version, etc.)
Typescript 5.2.2, Node 18.15.0, MacOS 14.0 (23A344)