-
Notifications
You must be signed in to change notification settings - Fork 541
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
BalancedPool types don't account for all upstreams variations #1948
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests, we use tsd for typescript. |
@mcollina Thanks for the quick reply. I'll make a PR for this. |
jimmy-guzman
added a commit
to jimmy-guzman/undici
that referenced
this issue
Feb 22, 2023
KhafraDev
pushed a commit
that referenced
this issue
Feb 22, 2023
metcoder95
pushed a commit
to metcoder95/undici
that referenced
this issue
Jul 21, 2023
crysmags
pushed a commit
to crysmags/undici
that referenced
this issue
Feb 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
Unless I'm missing something but shouldn't the types for
BalancedPool
, allow forURL[]
. Based on the types it seems like it doesn't but then the implementation seems like it should/can.Also, should addUpstream allow
URL
?Ignoring TypeScript errors, everything seems to work as expected
Reproducible By
Expected Behavior
The following should not cause typescript errors
Logs & Screenshots
Environment
TypeScript: 4.9.5
Node: v18.12.1
The text was updated successfully, but these errors were encountered: