Inconsistent types for mutation return type
I have a
1. When I pull the types from the
2. When I pull the types of the mutation from the
3. When I pull the types via
See screenshots for some more details.
These are the packages I have installed:
Why are my mutation output types getting lost? Thanks!
signIn mutation that returns:1. When I pull the types from the
AppRouter in the server (separate API with Express.js), the proper type is inferred.2. When I pull the types of the mutation from the
AppRouter, but this time from my client, the wrong type is inferred (I get never instead of string for both keys)3. When I pull the types via
Awaited<ReturnType<typeof trpc.signIn.mutate>> or by directly invoking the function, the type turns to {}See screenshots for some more details.
These are the packages I have installed:
Why are my mutation output types getting lost? Thanks!


