aws-sdk-js-v3
aws-sdk-js-v3 copied to clipboard
Tighter client.send typing.
Describe the feature
Currently, client.send
takes any "Command". The send
method should only take commands appropriate for that client.
Use Case
Sometimes I accidentally try to run a command with the wrong client, e.g. ec2Client.send(new TerminateInstanceInAutoScalingGroupCommand({})
.
It would be nice if static type checkers could head me off at the pass.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
SDK version used
3.433.0
Environment details (OS name and version, etc.)
Mac OS Ventura 13.5.2