★ wanayoo — archive 1999 https://github.com/developit/unfetch/pull/121Nouvelle recherche | Portail wanayoo
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

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

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

This comment has been minimized.

@developit

developit Feb 18, 2020
Owner

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

This comment has been minimized.

@0x80

0x80 Feb 26, 2020
Author Contributor

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

@developit developit merged commit 51de947 into developit:master Sep 29, 2020
1 of 2 checks passed
1 of 2 checks passed
build
Details
continuous-integration/travis-ci/pr The Travis CI build failed
Details
@0x80 0x80 deleted the 0x80:topic/export-request-init-type branch Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.