-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
Inconsistent types for agent option #2257
Comments
WillianAgostini
added a commit
to WillianAgostini/got
that referenced
this issue
Apr 30, 2023
WillianAgostini
added a commit
to WillianAgostini/got
that referenced
this issue
Apr 30, 2023
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I noticed that the type definition for the agent option allows undefined as a valid value, but when I pass undefined at runtime, I get an error saying that agent value is expected to be an object.
Actual behavior
Expected behavior
I expected the code to run without any errors and print the response body from example.com.
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: