Type-safe "RPC" Client #2289
Unanswered
joe-hillyard
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Perhaps I did not do enough research before posting - I have just found the "generate-http-client" CLI command. This will help narrow down the problem (I have been using orval up until now, but would prefer to bring internally). I do notice that this command is resolving the framework platform (express or koa) then bootstrapping etc. My understanding was the Ts.ED Platform Router is an abstraction that can be consumed the same way, or have I misinterpreted? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently saw an enhancement issue for tRPC integration and while it is an interesting concept I'm not sure i'm willing to migrate my projects to tRPC in any capacity, but it did cause me to think about type-safe RPC and how it could realistically be achieved within Ts.ED.
For context, I am am using moon repo as my monorepo with several backend REST services, api gateway and multiple user interfaces as one whole workspace. However one of my biggest issues I haven't been able to solve yet is isomorphic/homogenous clients for a streamlined developer experience/workspace integration.
I stumbled across this article which highlights the typescript magic and JS proxy internals required to make it achievable, therefore my question is - do you have any suggestions for a good place for me to start investigating? I don't see much documented on PlatformRouter but I imagine that would be the best point of integration.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions