tRPCttRPC
Powered by
Mr. JokerM
tRPC•12mo 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
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

[Typescript] Client query / mutate has any type
KhojoKKhojo / ❓-help
10mo ago
tRPC query has any type
KrishnaKKrishna / ❓-help
3y ago
TypeScript Issue: router.createCaller Implicitly has Return Type "any"
natefNnatef / ❓-help
3y ago