ts-rest icon indicating copy to clipboard operation
ts-rest copied to clipboard

use ClientInferRequest-inferred args for evaluateFetchApiArgs and getRouteQuery

Open btoo opened this issue 6 months ago • 3 comments

without these changes, non-bodiful-mutation operations like simple GET requests incorrectly require bodies

playground link


image

it's possible that AppRouteMutation was originally being used just because it was the one that was most inclusive of the union'd fields, such as ones that need to be destructured in https://github.com/ts-rest/ts-rest/blob/dd7239bc950d1e254d9c9cd6df7dbccc529c33cb/libs/ts-rest/core/src/lib/client.ts#L354-L360 but this functionality doesn't need to force the function signatures to lose their genericities

btoo avatar Aug 30 '25 06:08 btoo

⚠️ No Changeset found

Latest commit: f915c73ef18b297b4e4483d23c943fb6ff801f88

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

changeset-bot[bot] avatar Aug 30 '25 06:08 changeset-bot[bot]

@btoo is attempting to deploy a commit to the ts-rest Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 30 '25 06:08 vercel[bot]