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 BeforeRetryHook and NormalizedOptions TypeScript type definitions #308

Conversation

jabuj
Copy link
Contributor

@jabuj jabuj commented Dec 14, 2020

Fixes #289 and fixes #288. The latter can be fixed by #307, but it doesn't include moving arguments that BeforeRetryHook receives to a separate object that can later be used to declare beforeRetry hooks outside of ky.create declaration or actual request.

index.d.ts Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

@sindresorhus
Copy link
Owner

Can you rebase from master?

@jabuj jabuj force-pushed the fix/types-before-retry-normalized-options branch from ec2450f to ae0772e Compare January 4, 2021 04:32
@jabuj
Copy link
Contributor Author

jabuj commented Jan 4, 2021

Eh, I'm not very familiar with rebases, I hope I didn't mess anything up

index.d.ts Outdated Show resolved Hide resolved
index.test-d.ts Outdated Show resolved Hide resolved
@sindresorhus sindresorhus changed the title Fixed BeforeRetryHook and NormalizedOptions type definitions Fix BeforeRetryHook and NormalizedOptions TypeScript type definitions Jan 8, 2021
@sindresorhus sindresorhus merged commit 5da3da0 into sindresorhus:master Jan 8, 2021
@sindresorhus
Copy link
Owner

Thanks for the PR :)

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.

Stand-alone type definitions for NormalizedOptions BeforeRetryHook type definitions
3 participants