Mr. JokerM
tRPC11mo ago
4 replies
Mr. Joker

[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 ?
image.png
image.png
Solution
My problem lies in my project's monorepo architecture and reexporting schemas within monorepo and then infering types with zod
Was this page helpful?