Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix signature of RetryHandler #3416

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Fix signature of RetryHandler #3416

merged 1 commit into from
Jul 22, 2024

Conversation

JbIPS
Copy link
Contributor

@JbIPS JbIPS commented Jul 22, 2024

This relates to...

Looking at the typings of RetryHandler, I saw that it must return number | null but the documentation says void.

Changes

Fixed the documentation page for RetryHandler

Features

N/A

Bug Fixes

N/A

Breaking Changes and Deprecations

None

Status

  • [ x ] I have read and agreed to the Developer's Certificate of Origin
  • [ S ] Tested
  • [ S ] Benchmarked (optional)
  • [ x ] Documented
  • [ x ] Review ready
  • In review
  • Merge ready

Looking at the typings of [RetryCallback](https://github.com/nodejs/undici/blob/main/types/retry-handler.d.ts#L26), I saw that it must return `number | null` but the [documentation](https://undici.nodejs.org/#/docs/api/RetryAgent?id=parameter-retryhandleroptions) says `void`.
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@ronag ronag merged commit 5335013 into nodejs:main Jul 22, 2024
29 of 30 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 12, 2024
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants