-
Notifications
You must be signed in to change notification settings - Fork 610
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
MockAgent
: MockResponseCallbackOptions
given to replyOptionsCallback
is a totally wrong type
#1583
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
@mcollina if you want I can take this issue? |
go for it! |
@mcollina, I'm currently trying to fix this issue. I reproduced the code and, indeed,
However, the type for the callback says that it can have these options:
So I want to check if this is a mismatch between the type and what |
in this library, the types come after JS, so the js code is the source of truth. |
@mcollina you can close this issue 👍 |
Closed by #2951 |
Bug Description
Reproducible By
Expected Behavior
The types should be correct.
Logs & Screenshots
Actual value:
Expected value:
undici/types/mock-interceptor.d.ts
Line 26 in 1822ee6
undici/types/mock-interceptor.d.ts
Lines 85 to 87 in 1822ee6
undici/types/mock-interceptor.d.ts
Lines 72 to 79 in 1822ee6
Environment
Darwin 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
Additional context
The text was updated successfully, but these errors were encountered: