RPC client shows 'any'
Hi, I currently working on getting frontend api with types. But when I do it, it shows
in /server/app.ts I did define routes as the docs recommended.



6 Replies
When you do
api.attendance.getShiftInfo
, what are the autocomplete options?
This might be helpful: https://hono.dev/docs/guides/rpc#compile-your-code-before-using-it-recommended
With a monorepo, you’ll want to use generated types. The link I shared about compiling the client may also help
Ok will try on that
https://catalins.tech/hono-rpc-in-monorepos/
ahh ic, is the tsconfig.json problem, now resolved, thx alot!
Catalin's Tech
Hono RPC And TypeScript Project References
Learn how to use the Hono RPC in codebases with the backend separated from the frontend. The solution uses TypeScript's project references.

you should mark the thread as "solved" btw