-
Notifications
You must be signed in to change notification settings - Fork 517
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: throws on unsupported option path
#1282
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path is already part of these through extending parent structure. What is the problem you are trying to solve?
@ronag
When using TypeScript, you can not pass the Lines 63 to 68 in d7eac3e
Also, I found Lines 13 to 17 in d7eac3e
|
I think the typescript version is correct and reflects intended/recommended usage. Whether or not the javascript version should allow it is up for discussion. Maybe we should throw? |
Ok. I'll try. |
path
Codecov Report
@@ Coverage Diff @@
## main #1282 +/- ##
==========================================
- Coverage 94.11% 94.11% -0.01%
==========================================
Files 44 44
Lines 4098 4096 -2
==========================================
- Hits 3857 3855 -2
Misses 241 241
Continue to review full report at Codecov.
|
@ronag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that your pull request has conflicts, have you tried to resolve these conflicts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that your pull request has conflicts, have you tried to resolve these conflicts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ronag What do you think of this pull request and the changes made to it? Would it be mergeable and adequate?
@hebertcisco |
I think this can be closed, thanks! |
Refs: #1011
undici.request
acceptspath
option but the type definition omitspath
.POC: https://github.com/is2ei/POC-nodejs-undici-1011
code:
undici/index.js
Lines 63 to 75 in d7eac3e