-
-
Notifications
You must be signed in to change notification settings - Fork 689
types: align RequestInit types with lib.dom.ts #1199
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
Conversation
56210da to
46ed723
Compare
Codecov Report
@@ Coverage Diff @@
## main #1199 +/- ##
==========================================
- Coverage 93.73% 93.43% -0.31%
==========================================
Files 43 43
Lines 4023 4052 +29
==========================================
+ Hits 3771 3786 +15
- Misses 252 266 +14
Continue to review full report at Codecov.
|
|
Could you add a few assertions for these changes in https://github.com/nodejs/undici/blob/main/test/types/fetch.test-d.ts? |
Ethan-Arrowood
left a comment
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.
approving but also like @mcollina comment, please update the assertions in the test file before merging
|
I assume you have prettier/eslint auto enabled in your editor. please revert all of the changes in the .js file as it does not apply to this PR's intended changes. Thank you! |
mcollina
left a comment
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.
lgtm
This relates to...
#1172
Rationale
Types for
RequestInitshould be fully compatible with typescript dom types.Changes
Adds all properties to
RequestInitthat were missing based on the typescript dom types. This adjusts theHeaderssubtype to also follow the typescript definitions.Features
N/A
Bug Fixes
closes #1172
Breaking Changes and Deprecations
N/A