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: remove retyping of modules with types #125

Merged
merged 4 commits into from
May 4, 2021
Merged

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 2, 2021

The types are incorrect and cause errors with modules that check the types of their deps.

Types for is-electron can be removed once cheton/is-electron#7 is resolved.

Fixes #109

BREAKING CHANGE: ResponseWithURL type is not exported any more as it uses a private name and causes an inconsistency between node and the browser

They cause errors with powergate
@achingbrain achingbrain requested a review from vasco-santos May 2, 2021 09:10
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

This cause a new strange error in the build?

@BigLep BigLep added the status/in-progress In progress label May 3, 2021
These types are incorrect and cause errors in other modules.

Fixes #109
iso-url and electron-fetch export their own types so do not retype
them here.

We can remove is-electron too once cheton/is-electron#7
is resolved.
@achingbrain achingbrain changed the title fix: remove node streams from native fetch types fix: remove retyping of modules with types May 4, 2021
@achingbrain achingbrain requested a review from vasco-santos May 4, 2021 07:07
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM

@achingbrain achingbrain merged commit f6406c5 into master May 4, 2021
@achingbrain achingbrain deleted the fix/fix-types branch May 4, 2021 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

native-fetch types are made up
3 participants