### Decoupling Frontend from Backend in RPC Client with Shared Type Definitions
In order to make a rpc client, I have to call:
This type import is bothering me, because it means my frontend package depends on my backend package.
I am wondering if it would be possible to break this dependency by introducing a type helper that would only need to know about the requests schemas (GetUserIds and GetUser to follow the example in rpc package).
For ex:
That way, frontend and backend packages only know about limited types located in shared package.
Can this be done or there is a fundamental blocker with how the RpcRouter type is inferred at the moment? I'm thinking the R (Requirements) parameter could be a prob, but from client side, it seems to be
This type import is bothering me, because it means my frontend package depends on my backend package.
I am wondering if it would be possible to break this dependency by introducing a type helper that would only need to know about the requests schemas (GetUserIds and GetUser to follow the example in rpc package).
For ex:
That way, frontend and backend packages only know about limited types located in shared package.
Can this be done or there is a fundamental blocker with how the RpcRouter type is inferred at the moment? I'm thinking the R (Requirements) parameter could be a prob, but from client side, it seems to be
never, at least in the repo example it is.