Skip to content
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

Add ts-ignore to dynamic require #332

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Add ts-ignore to dynamic require #332

merged 2 commits into from
Jul 31, 2024

Conversation

ZJONSSON
Copy link
Owner

Unzipper is designed to be a small library and therefore does not include by default various clients for external integrations, such as the request library and the aws sdk. In most methods the "client" has to be passed into the respective function as an argument, but with aws_v3 we need multiple functions from the library, so it is "required" dynamically, but only when you call the aws_s3 function directly. (which means you have to separately

The dynamic require however seems to cause problems with type checking with some combination of tsc and ts-loader at the compilation stage (this is not a runtime error).

@ZJONSSON ZJONSSON merged commit d19c3fb into master Jul 31, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

1 participant