Tony
Explore posts from serversRPC types not working well inside a monorepo
basically the main issue rn is the rpc type inference and autocomplete is not fast in the client, basically in this file here
https://github.com/BrightonMboya/jani-payments/blob/a31f1b1c68ef3fb37512f838ab65673c40af055e/apps/www/src/server/hono.ts#L6
115 replies
RPC types not working well inside a monorepo
I get this part of chaining the routes. I did that and the initial error of
type instansiation is deep and possibly infinte
the new issue comes with the rpc inside the client is very slow on type inference and auto complete. it gets the type yes but its slow
I am trying the fix of using generated types suggested by ambergristle
maybe i am missing sth very obvious which i cant see it yet115 replies
RPC types not working well inside a monorepo
not really mate, I am getting confused
i am kinda doing that here no? https://github.com/BrightonMboya/jani-payments/blob/a31f1b1c68ef3fb37512f838ab65673c40af055e/packages/api/src/index.ts#L14C1-L22C21
115 replies
RPC types not working well inside a monorepo
I have tried on my own but havent managed to get it working. the ts inference and autocomplete are slow af. when u get a min u can check it out maybe
https://github.com/BrightonMboya/jani-payments
115 replies