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

fix: use NodeJS.ReadableStream type for upload body type to prevent conflict with DOM ReadableStream #33

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

juice49
Copy link
Contributor

@juice49 juice49 commented Sep 12, 2022

Attempting to pass a node ReadableStream to the upload function currently results in a type error, because the client library inadvertently expects a DOM ReadableStream. This change to the types explicitly references node's ReadableStream, resolving the type error.

Copy link
Member

@stipsan stipsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thnx! ☺️

@stipsan stipsan merged commit 8cbfe0c into sanity-io:main Jan 4, 2023
@juice49 juice49 deleted the fix/node-readable-stream-type branch January 4, 2023 14:52
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2023

🎉 This PR is included in version 4.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants