JorrinKievit / tmdb-js

A typesafe API wrapper for the TheMovieDatabase API for Node and the Web
10 stars 1 forks source link

Updated search endpoint types #20

Closed newmoneybigbucks closed 11 months ago

newmoneybigbucks commented 11 months ago

I updated some missing fields in the search endpoint request and result types. I added a interface for paginated results and used the generic result array like you suggested. I added two types for the search query parameters and had other types extend those to reduce some code duplication with common fields.

changeset-bot[bot] commented 11 months ago

🦋 Changeset detected

Latest commit: 45b7a5e4b8663711367edf7d6136359c1cddfe08

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 commented 11 months ago

Looks good, will merge it tomorrow!