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

Append to response record fix #26

Conversation

newmoneybigbucks
Copy link
Contributor

AppendToReponseType had an issue where if you passed undefined to the MoviesGetDetailsReponse (or the other get details response types) as the required generic parameters (if your using a those types on their own) and then trying to use Omit on it the never would get distributed over all the types of the data fields making the type unsuable. I think this is something to do with Record<string, never> being treated as an index signature, and then when Omit does T[P] never gets put in each place, but I am not 100% on why

justmeeos added 2 commits February 17, 2024 03:35
…re the never would get distributed over unawanted tyeps when undefined is given to AppendTORespolnseType. Changed it to use an object type instead
Copy link

changeset-bot bot commented Feb 17, 2024

🦋 Changeset detected

Latest commit: 722f537

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
tmdb-js-node Patch
tmdb-js-web Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JorrinKievit
Copy link
Owner

Thank you!

@JorrinKievit JorrinKievit merged commit c3f8b61 into JorrinKievit:master Feb 18, 2024
2 checks passed
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.

2 participants