Mr. Joker
Mr. Joker3w ago

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.
No description
No description
No description
No description
No description
No description
No description
No description
1 Reply
Vlad
Vlad3d ago
@Mr. Joker hey vlad, it seems I have the same issue. Did you figure out how to fix it? Oh, just figured it out

Did you find this page helpful?