maloguertin/msw-trpc

Support different mutation input types

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
As of now getMutationInput only handles json but a mutation body can be formData or other.

Describe the solution you'd like
Make getMutationInput correctly infer which method on req to call according to the content type.

Describe alternatives you've considered
Have different getMutation[Type]Input methods