Skip to content

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.

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.

2 participants