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

Export RequestInit interface #121

Merged
merged 2 commits into from Sep 29, 2020
Merged

Export RequestInit interface #121

merged 2 commits into from Sep 29, 2020

Conversation

0x80
Copy link
Contributor

@0x80 0x80 commented Aug 18, 2019

Exports the RequestInit interface for use in client code like described here #120.

Copy link
Owner

@developit developit left a comment

Choose a reason for hiding this comment

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

The types we can certainly do, but I don't think we can export RequestInit itself.

@@ -2,14 +2,16 @@ import {
Body as NodeBody,
Headers as NodeHeaders,
Request as NodeRequest,
Response as NodeResponse
Response as NodeResponse,
RequestInit as NodeRequestInit
Copy link
Owner

Choose a reason for hiding this comment

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

unfetch doesn't support RequestInit, so exporting this from isomorphic-unfetch makes the interfaces incompatible depending on environment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah bummer. I guess close this PR then...

@developit developit merged commit 51de947 into developit:master Sep 29, 2020
@0x80 0x80 deleted the topic/export-request-init-type branch September 29, 2020 16:11
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

2 participants