tRPCttRPC
Powered by
Mr. JokerM
tRPC•10mo ago•
3 replies
Mr. Joker

Incomplete imported router type

Hey, I know that everyone might be tired of such questions. But I think my case is slightly different. The thing is that when I import approuter type, I don't see type "any", I can see actual type, but incomplete one until it reaches query/mutation. Maybe someone could help me with that?

My typescript version is ok.
Editor is using the workspace typescript version.
Trpc version is latest

My monorepo structure is
/apps/client
/apps/server
/packages/shared

I import AppRouter type from server inside shared package and reexport it for client to be consumed, however some part of type is lost on shared package side. Even If I import the type directly from server I will get the same issue.
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
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

AppRouter type is imported as any
BuckyxBBuckyx / ❓-help
2y ago
Router type = any in monorepo...
beastieboardBbeastieboard / ❓-help
12mo ago
Monorepo with shared trpc router type
MugetsuMMugetsu / ❓-help
8mo ago
Complex type inference on router outputs?
ianIian / ❓-help
2y ago