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(fetch): add missing ReadableStream interface to response.body #1314

Merged
merged 1 commit into from Mar 31, 2022

Conversation

fraxken
Copy link
Member

@fraxken fraxken commented Mar 30, 2022

Add missing ReadableStream type to fetch response.body (relate to #1308).

Hope i have not missed something, maybe we need a seperate type for (ControlledAsyncIterable & ReadableStream) | null ?

test/types/fetch.test-d.ts Outdated Show resolved Hide resolved
@mcollina mcollina merged commit 8b1dcd4 into nodejs:main Mar 31, 2022
@distracteddev
Copy link

distracteddev commented Oct 13, 2022

This change broke undici's support for working with @types/node < 16.x.x, because the ReadableStream type does not exist under stream/web in those versions.

Not sure if this project considers this a problem, since it technically still runs on Node 12 and 14, but cannot be compiled without using a different set of types.

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.

None yet

5 participants