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(types): Scope accepts legacy Url not WHATWG #1879

Merged
merged 3 commits into from Feb 10, 2020

Conversation

mastermatt
Copy link
Member

Updates the types to properly reflect that a Scope can be created with
the output of url.parse. Previously, it denoted that it accepted a
url.URL instance. To clarify, tests were also added proving that one
works while the other throws an error.

This issue seems to be blocking the build of other PRs (#1878), probably because dtslint got a little smarter recently.

#1692 may be enough to add url.URL support.

Updates the types to properly reflect that a Scope can be created with
the output of `url.parse`. Previously, it denoted that it accepted a
`url.URL` instance. To clarify, tests were also added proving that one
works while the other throws an error.
@paulmelnikow paulmelnikow added the TypeScript Anything related to TypeScript label Feb 10, 2020
@mastermatt mastermatt merged commit e22233b into nock:master Feb 10, 2020
@mastermatt mastermatt deleted the url-as-scope-input branch February 10, 2020 03:26
@nockbot
Copy link
Collaborator

nockbot commented Feb 10, 2020

🎉 This PR is included in version 11.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released TypeScript Anything related to TypeScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants