Skip to content
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(types): callback body can be any input type #1334

Merged
merged 1 commit into from Apr 14, 2022
Merged

fix(types): callback body can be any input type #1334

merged 1 commit into from Apr 14, 2022

Conversation

KhafraDev
Copy link
Member

Partially fixes #1322

This sets the callback option body type to the input types supported by undici. Replication with Uint8Array, Buffer, etc. can be shown in the code provided in the issue.

(this is a types-only change)

@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2022

Codecov Report

Merging #1334 (edf65fd) into main (c0961f4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1334   +/-   ##
=======================================
  Coverage   94.10%   94.10%           
=======================================
  Files          45       45           
  Lines        4189     4189           
=======================================
  Hits         3942     3942           
  Misses        247      247           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0961f4...edf65fd. Read the comment docs.

@ronag ronag requested a review from mcollina April 14, 2022 05:37
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit f5d9a94 into nodejs:main Apr 14, 2022
@KhafraDev KhafraDev deleted the fix-reply-type-string branch April 14, 2022 13:49
KhafraDev added a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

types(MockResponseCallbackOptions): body is not always a string
4 participants