Skip to content

Property Body does not exist on type ServiceOutputTypes with AWS sdk v3 #1520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jlefebvre1997 opened this issue Feb 11, 2025 · 1 comment

Comments

@jlefebvre1997
Copy link

Hello,

I'm trying to use the NodeJsClient type, I'm following this documentation : https://www.npmjs.com/package/@smithy/types

I'm using NestJS so there is dependency injection involved, but I'm doing basically everything as indicated in the doc. However, it doesn't seem to work, the type inferred from NodeJsClient<S3Client> doesn't seem to resolve to the right type, resulting in the error message Property Body does not exist on type ServiceOutputTypes

I have smithy/types to version 4.1.0, and aws s3 client to version 3.744.0

Thanks in advance for your help 🙏

@j-zaballa
Copy link

Same issue here with sdk v3.758.0 and smithy/types 4.1.0. Type narrowing to NodeJsClient does not seem to work as per the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants