[Typescript] Client query/mutate has any type
So, apparently AppRouter type has all info about existent queries/mutations, but shows <any> for input and Promise<any> for output of query/mutation.
How to fix it ?


Solution:Jump to solution
My problem lies in my project's monorepo architecture and reexporting schemas within monorepo and then infering types with zod
2 Replies
UPD: I've read the article https://trpc.io/docs/faq#it-doesnt-work-im-getting-any-everywhere, I have everything allright with the list, still having the issue
FAQ / Troubleshooting | tRPC
Collection of frequently asked questions with ideas on how to troubleshoot & resolve them.
Solution
My problem lies in my project's monorepo architecture and reexporting schemas within monorepo and then infering types with zod