Mr. Joker
Mr. Joker5w ago

[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 ?
No description
No description
Solution:
My problem lies in my project's monorepo architecture and reexporting schemas within monorepo and then infering types with zod
Jump to solution
2 Replies
Mr. Joker
Mr. JokerOP5w ago
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
Mr. Joker
Mr. Joker5w ago
My problem lies in my project's monorepo architecture and reexporting schemas within monorepo and then infering types with zod

Did you find this page helpful?