9 Replies
I tried
TRPCClientErrorLike<AppRouter> and there's no type error, but the type is wrong.
you dont need to type it
its all inferred
how to inferred it
dont write a type
hover over the stuff, you will see its typed already
I want to write the
onError function outside of the useMutation options, so I want to know how to type or inferred ithere is the type if I hover it:

nvm
TRPCClientErrorLike<AppRouter> is correct
the message is string
