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

Add TimeoutError and HTTPError to ky TypeScript namespace #241

Merged
merged 2 commits into from
Mar 6, 2020

Conversation

hasparus
Copy link
Contributor

Closes #237

@sindresorhus sindresorhus changed the title Add TimeoutError and HTTPError to ky namespace Add TimeoutError and HTTPError to ky TypeScript namespace Mar 3, 2020
@@ -140,3 +140,17 @@ ky(url, {
afterStatusCodes: []
}
});

try {
await ky.get(url);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

❤️

@sindresorhus sindresorhus merged commit 9c9dfe9 into sindresorhus:master Mar 6, 2020
wildan2711 added a commit to wildan2711/http that referenced this pull request Mar 29, 2020
Since [ky@0.19.0](https://github.com/sindresorhus/ky/releases/tag/v0.19.0), `HTTPError` is moved to namespaced `ky.HTTPError`.

Refer to this PR: sindresorhus/ky#241
pi0 pushed a commit to nuxt/http that referenced this pull request Mar 31, 2020
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.

HTTPError type is not exported
4 participants