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


